public class ITKInfrastructureAck extends ITKMessageImpl implements ITKAckDetails
Modifier and Type | Field and Description |
---|---|
static String |
ACK_PROFILE_ID
The Constant ACK_PROFILE_ID.
|
static String |
ACK_SERVICE_ID
The Constant ACK_SERVICE_ID.
|
businessPayload, isResponse, messageProperties, preResolvedTransportRoute
Constructor and Description |
---|
ITKInfrastructureAck(ITKMessageProperties requestMessageProperties,
String auditIdentity)
Instantiates a new iTK infrastructure ack.
|
ITKInfrastructureAck(ITKMessageProperties requestMessageProperties,
String auditIdentity,
ITKMessagingException itkMessagingException)
Instantiates a new iTK infrastructure ack.
|
Modifier and Type | Method and Description |
---|---|
String |
getBusinessPayload()
Obtains the business payload portion of the message to be transmitted via
the ITK transport and distribution infrastructure.
Note: those (ADT v2 pipe and hat) messages that ITK requires to be base64 encoded when being transmitted will not be encoded - i.e. |
String |
getFullPayload()
Obtains the full ITKMessage including any wrappers
|
ITKAddress |
getIntendedRecipient()
Provides the ITKAddress for the intended recipient of the message
being acknowledged
|
ITKMessagingException |
getNackError()
Obtains details about the error for which the Nack is being generated.
|
String |
getReportingIdentity()
Get the identity of the node that originated the InfrastructureAck
This may be different to the
ITKAckDetails.getIntendedRecipient() if a
nack was generated by an intermediary node |
String |
getServiceRef()
The service identifier from the message being acknowledged
|
String |
getTrackingRef()
The tracking id reference from the message being acknowledged
|
boolean |
isNack()
Convenient method to simply establish whether the
ITKAckDetails
represents an Ack or Nack |
getMessageProperties, getPreresolvedRoute, isResponse, setBusinessPayload, setIsReponse, setMessageProperties
public static final String ACK_PROFILE_ID
public static final String ACK_SERVICE_ID
public ITKInfrastructureAck(ITKMessageProperties requestMessageProperties, String auditIdentity)
requestMessageProperties
- the request message propertiesauditIdentity
- the audit identitypublic ITKInfrastructureAck(ITKMessageProperties requestMessageProperties, String auditIdentity, ITKMessagingException itkMessagingException)
requestMessageProperties
- the request message propertiesauditIdentity
- the audit identityitkMessagingException
- the itk messaging exceptionpublic String getFullPayload() throws ITKMessagingException
ITKMessage
getFullPayload
in interface ITKMessage
ITKMessage.getBusinessPayload()
ITKMessagingException
- If there is an error serialising the
full ITKMessagepublic String getBusinessPayload()
ITKMessage
getBusinessPayload
in interface ITKMessage
getBusinessPayload
in class ITKMessageImpl
public ITKAddress getIntendedRecipient()
ITKAckDetails
getIntendedRecipient
in interface ITKAckDetails
public ITKMessagingException getNackError()
ITKAckDetails
null
is returned.getNackError
in interface ITKAckDetails
ITKMessagingException
encapsulating the error detailspublic String getReportingIdentity()
ITKAckDetails
ITKAckDetails.getIntendedRecipient()
if a
nack was generated by an intermediary nodegetReportingIdentity
in interface ITKAckDetails
public String getServiceRef()
ITKAckDetails
getServiceRef
in interface ITKAckDetails
urn:nhs-itk:services:201005:SendCDADocument-v2-0
public String getTrackingRef()
ITKAckDetails
getTrackingRef
in interface ITKAckDetails
UUID
?public boolean isNack()
ITKAckDetails
ITKAckDetails
represents an Ack or NackisNack
in interface ITKAckDetails
true
if it is a Nack (i.e. ITKAckDetails.getNackError()
is not null
), false
otherwiseAll content is available under the Open Government Licence, except where otherwise stated
All example source code is available under Apache 2.0, except where otherwise stated