public class DEWrappedMessage extends ITKMessageImpl
Modifier and Type | Field and Description |
---|---|
static boolean |
DE_ADDRESSED
Constant to indicate that the on the wire Distribution
envelope XML contains logical originating and destination
addresses
|
static boolean |
DE_UNADDRESSED
Constant to indicate that the on-the-wire Distribution
envelope XML omits logical addressing (for instance
this is not required in the case of synchronous calls)
|
businessPayload, isResponse, messageProperties, preResolvedTransportRoute
Constructor and Description |
---|
DEWrappedMessage()
Instantiates a new dE wrapped message.
|
DEWrappedMessage(ITKMessage message)
Instantiates a new dE wrapped message.
|
DEWrappedMessage(ITKService service,
ITKMessage message,
boolean addressed)
Instantiates a new dE wrapped message.
|
Modifier and Type | Method and Description |
---|---|
String |
getFullPayload()
Obtains the full ITKMessage including any wrappers
|
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. |
getBusinessPayload, getMessageProperties, getPreresolvedRoute, isResponse, setIsReponse, setMessageProperties
public static final boolean DE_ADDRESSED
public static final boolean DE_UNADDRESSED
@Requirement(traceTo="COR-DEH-02", status="implemented") public DEWrappedMessage()
public DEWrappedMessage(ITKMessage message)
message
- the messagepublic DEWrappedMessage(ITKService service, ITKMessage message, boolean addressed)
service
- the servicemessage
- the messageaddressed
- the addressed@Requirement(traceTo={"COR-DEH-01","COR-DEH-04"}, status="implemented") public String getFullPayload() throws ITKMessagingException
ITKMessage
ITKMessage.getBusinessPayload()
ITKMessagingException
- If there is an error serialising the
full ITKMessagepublic void setBusinessPayload(String businessPayload)
ITKMessage
setBusinessPayload
in interface ITKMessage
setBusinessPayload
in class ITKMessageImpl
businessPayload
- A string representation of the business payload messageAll 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