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, setMessagePropertiespublic 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
ITKMessagegetFullPayload in interface ITKMessageITKMessage.getBusinessPayload()ITKMessagingException - If there is an error serialising the
full ITKMessagepublic String getBusinessPayload()
ITKMessagegetBusinessPayload in interface ITKMessagegetBusinessPayload in class ITKMessageImplpublic ITKAddress getIntendedRecipient()
ITKAckDetailsgetIntendedRecipient in interface ITKAckDetailspublic ITKMessagingException getNackError()
ITKAckDetailsnull is returned.getNackError in interface ITKAckDetailsITKMessagingException encapsulating the error detailspublic String getReportingIdentity()
ITKAckDetailsITKAckDetails.getIntendedRecipient() if a
nack was generated by an intermediary nodegetReportingIdentity in interface ITKAckDetailspublic String getServiceRef()
ITKAckDetailsgetServiceRef in interface ITKAckDetailsurn:nhs-itk:services:201005:SendCDADocument-v2-0public String getTrackingRef()
ITKAckDetailsgetTrackingRef in interface ITKAckDetailsUUID?public boolean isNack()
ITKAckDetailsITKAckDetails
represents an Ack or NackisNack in interface ITKAckDetailstrue 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