public abstract class ITKMessageImpl extends Object implements ITKMessage
| Modifier and Type | Field and Description |
|---|---|
protected String |
businessPayload
The business payload.
|
protected boolean |
isResponse
The is response.
|
protected ITKMessageProperties |
messageProperties
The message properties.
|
protected ITKTransportRoute |
preResolvedTransportRoute
The pre resolved transport route.
|
| Constructor and Description |
|---|
ITKMessageImpl()
Instantiates a new iTK message impl.
|
ITKMessageImpl(ITKMessageProperties itkMessageProperties)
Instantiates a new iTK message impl.
|
ITKMessageImpl(ITKMessageProperties itkMessageProperties,
String auditIdentity,
String profileId,
boolean reflectMessageProperties)
Instantiates a new iTK message impl.
|
| 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. |
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 |
setIsReponse(boolean isReponse)
Sets the checks if is reponse.
|
void |
setMessageProperties(ITKMessageProperties messageProperties)
Sets the
ITKMessageProperties associated with this
message. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetFullPayloadprotected ITKMessageProperties messageProperties
protected String businessPayload
protected boolean isResponse
protected ITKTransportRoute preResolvedTransportRoute
public ITKMessageImpl()
public ITKMessageImpl(ITKMessageProperties itkMessageProperties)
itkMessageProperties - the itk message propertiespublic ITKMessageImpl(ITKMessageProperties itkMessageProperties, String auditIdentity, String profileId, boolean reflectMessageProperties)
itkMessageProperties - the itk message propertiesauditIdentity - the audit identityprofileId - the profile idreflectMessageProperties - the reflect message propertiespublic String getBusinessPayload()
ITKMessagegetBusinessPayload in interface ITKMessagepublic void setBusinessPayload(String businessPayload)
ITKMessagesetBusinessPayload in interface ITKMessagebusinessPayload - A string representation of the business payload messagepublic ITKMessageProperties getMessageProperties()
ITKMessageITKMessageProperties associated with this
message. These properties provide relevant addressing and meta-data
about the message.getMessageProperties in interface ITKMessagenull if no ITKMessageProprties have been set.public void setMessageProperties(ITKMessageProperties messageProperties)
ITKMessageITKMessageProperties associated with this
message. These properties provide relevant addressing and meta-data
about the message.setMessageProperties in interface ITKMessagemessageProperties - the ITKMessageProperties associated with the message.public ITKTransportRoute getPreresolvedRoute()
ITKMessageITKTransportRoute 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.getPreresolvedRoute in interface ITKMessageITKTransportRoute 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 callpublic boolean isResponse()
ITKMessageisResponse in interface ITKMessagetrue if this message is a
response, false otherwise.public void setIsReponse(boolean isReponse)
isReponse - the new checks if is reponseAll 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