public interface ITKMessage
ITKMessageProperties
. 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
|
ITKMessageProperties |
getMessageProperties()
Obtains the
ITKMessageProperties associated with this
message. |
ITKTransportRoute |
getPreresolvedRoute()
Obtains any pre-resolved
ITKTransportRoute associated
with this ITKMessage.A pre-resolved transport route might be present if this ITKMessage instance is a response where the return address is already known (e.g. |
boolean |
isResponse()
Indicates whether this ITKMessage instance is
in response to a request message such as a query
|
void |
setBusinessPayload(String businessPayload)
Sets 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 must not need to be pre-encoded - i.e. |
void |
setMessageProperties(ITKMessageProperties itkMessageProperties)
Sets the
ITKMessageProperties associated with this
message. |
ITKMessageProperties getMessageProperties()
ITKMessageProperties
associated with this
message. These properties provide relevant addressing and meta-data
about the message.null
if no ITKMessageProprties have been set.void setMessageProperties(ITKMessageProperties itkMessageProperties)
ITKMessageProperties
associated with this
message. These properties provide relevant addressing and meta-data
about the message.itkMessageProperties
- the ITKMessageProperties associated with the message.void setBusinessPayload(String businessPayload)
businessPayload
- A string representation of the business payload messageString getBusinessPayload()
String getFullPayload() throws ITKMessagingException
getBusinessPayload()
ITKMessagingException
- If there is an error serialising the
full ITKMessageITKTransportRoute getPreresolvedRoute()
ITKTransportRoute
associated
with this ITKMessage.<wsa:ReplyTo/>
address provided in the request), or because the application layer
has already resolved the ITKTransportRoute
for the target
destination.ITKTransportRoute
if present, or
null
otherwise. If no pre-resolved transport route is
present it is the responsibility of the implementation to determine
the ITKTransportRoute
via the
DirectoryOfServices.resolveDestination(String, uk.nhs.interoperability.infrastructure.ITKAddress)
method callboolean isResponse()
true
if this message is a
response, false
otherwise.All 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