public class WSSOAPMessageImpl extends ITKMessageImpl
Modifier and Type | Field and Description |
---|---|
static String |
ASYNCREQ
The Constant ASYNCREQ.
|
static String |
ASYNCRESP
The Constant ASYNCRESP.
|
static String |
SYNCREQ
The Constant SYNCREQ.
|
static String |
SYNCRESP
The Constant SYNCRESP.
|
businessPayload, isResponse, messageProperties, preResolvedTransportRoute
Constructor and Description |
---|
WSSOAPMessageImpl()
Instantiates a new wSSOAP message impl.
|
WSSOAPMessageImpl(ITKMessage itkMessage,
String messageType) |
WSSOAPMessageImpl(ITKTransportRoute destination,
ITKMessage itkMessage,
String messageType)
Instantiates a new wSSOAP message impl.
|
Modifier and Type | Method and Description |
---|---|
String |
getAction()
Gets the action.
|
Calendar |
getCreated()
Gets the created.
|
String |
getCreatedDateString()
Gets the created date string.
|
Calendar |
getExpires()
Gets the expires.
|
String |
getExpiryDateString()
Gets the expiry date string.
|
String |
getFaultTo()
Gets the fault to.
|
String |
getFrom()
Gets the from.
|
String |
getFullPayload()
Obtains the full ITKMessage including any wrappers
|
String |
getMessageId()
Gets the message id.
|
String |
getMsgType()
Gets the msg type.
|
String |
getPayload()
Gets the payload.
|
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. |
String |
getReplyTo()
Gets the reply to.
|
int |
getTimeToLive()
Gets the time to live.
|
String |
getTo()
Gets the to.
|
String |
getUsername()
Gets the username.
|
String |
serialise()
Serialise.
|
void |
setAction(String action)
Sets the action.
|
void |
setFaultTo(String faultTo)
Sets the fault to.
|
void |
setFrom(String from)
Sets the from.
|
void |
setMsgType(String msgType)
Sets the msg type.
|
void |
setPayload(String businessPayload)
Sets the payload.
|
void |
setReplyTo(String replyTo)
Sets the reply to.
|
void |
setTimeToLive(int ttl)
Sets the time to live.
|
void |
setTo(String to)
Sets the to.
|
void |
setUsername(String username)
Sets the username.
|
getBusinessPayload, getMessageProperties, isResponse, setBusinessPayload, setIsReponse, setMessageProperties
public static final String SYNCREQ
public static final String SYNCRESP
public static final String ASYNCREQ
public static final String ASYNCRESP
public WSSOAPMessageImpl()
public WSSOAPMessageImpl(ITKMessage itkMessage, String messageType) throws ITKMessagingException
ITKMessagingException
public WSSOAPMessageImpl(ITKTransportRoute destination, ITKMessage itkMessage, String messageType) throws ITKMessagingException
destination
- the destinationitkMessage
- the itk messagemessageType
- the message typeITKMessagingException
- the iTK messaging exceptionpublic String getMessageId()
public String getAction()
public void setAction(String action)
action
- the new actionpublic String getFrom()
public void setFrom(String from)
from
- the new frompublic String getTo()
public void setTo(String to)
to
- the new topublic String getUsername()
public void setUsername(String username)
username
- the new usernamepublic Calendar getCreated()
public String getCreatedDateString()
public String getExpiryDateString()
public Calendar getExpires()
public String getPayload()
public String getMsgType()
public void setMsgType(String msgType)
msgType
- the new msg typepublic String getReplyTo()
public void setReplyTo(String replyTo)
replyTo
- the new reply topublic String getFaultTo()
public void setFaultTo(String faultTo)
faultTo
- the new fault topublic int getTimeToLive()
public void setTimeToLive(int ttl)
ttl
- the new time to livepublic ITKTransportRoute getPreresolvedRoute()
ITKMessage
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.getPreresolvedRoute
in interface ITKMessage
getPreresolvedRoute
in class ITKMessageImpl
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 callpublic void setPayload(String businessPayload)
businessPayload
- the new payloadpublic String getFullPayload() throws ITKMessagingException
ITKMessage
ITKMessage.getBusinessPayload()
ITKMessagingException
- If there is an error serialising the
full ITKMessage@Requirement(traceTo="WS-STD-03", status="implemented") public String serialise()
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