public class ITKTransportPropertiesImpl extends Object implements ITKTransportProperties
| Constructor and Description |
|---|
ITKTransportPropertiesImpl(String transportType)
Instantiates a new iTK transport properties impl.
|
| Modifier and Type | Method and Description |
|---|---|
static ITKTransportProperties |
buildFromSoap(Document doc)
Builds the from soap.
|
String |
getInvokedUrl()
Gets the URL of the invoked service or transport hop.
For SOAP this is mapped to/from <wsa:To/> |
String |
getTransportAction()
Gets the transportAction for the associated ITKMessage.
For SOAP this is mapped to/from <wsa:Action/> |
String |
getTransportFaultTo()
Gets the transport address property that allows asynchronous transport layer
faults to be returned.
For SOAP this is mapped to/from <wsa:FaultTo/>Note if the transport does not support a distinct faultTo property
this should return the same as ITKTransportProperties.getTransportReplyTo() property
or failing that the ITKTransportProperties.getTransportFrom() |
ITKTransportRoute |
getTransportFaultToRoute()
Convenience method to return a fully constructed
ITKTransportRoute for returning asynchronous
faults to. |
String |
getTransportFrom()
Gets the transport from address property - this may be used to return
asynchronous responses to the originator.
For SOAP this is mapped to/from <wsa:From/>. |
String |
getTransportMessageId()
Gets the unique transport level identifier for the
associated message.
|
String |
getTransportRelatesTo()
Gets the transport relates to property that allows asynchronous transport layer
messages to be correlated with their associated requests.
For SOAP this is mapped to/from <wsa:RelatesTo/>. |
String |
getTransportReplyTo()
Gets the transport address property that allows asynchronous transport layer
responses to be returned.
For SOAP this is mapped to/from <wsa:ReplyTo/>.Note if the transport does not support a distinct replyTo property
this should return the same as the ITKTransportProperties.getTransportFrom() |
ITKTransportRoute |
getTransportReplyToRoute()
Convenience method to return a fully constructed
ITKTransportRoute for returning asynchronous
response messages to. |
String |
getTransportTo()
Gets the transport hop destination.
|
void |
setInvokedUrl(String invokedUrl)
Sets the URL of the invoked service or transport hop.
For SOAP this is mapped to/from <wsa:To/> |
void |
setTransportAction(String transportAction)
Sets the transportAction for the associated ITKMessage.
For SOAP this is mapped to/from <wsa:Action/> |
void |
setTransportFaultTo(String transportFaultTo)
Sets the transport address property that allows asynchronous transport layer
faults to be returned.
For SOAP this is mapped to/from <wsa:FaultTo/>.Note if the transport does not support a distinct faultTo property
this should be set to the same as ITKTransportProperties.setTransportReplyTo(String) property
or failing that the ITKTransportProperties.setTransportFrom(String) |
void |
setTransportFrom(String transportFrom)
Sets the transport from address property - this may be used to return
asynchronous responses to the originator.
For SOAP this is mapped to/from <wsa:From/>. |
void |
setTransportMessageId(String transportMessageId)
Sets the unique transport level identifier for the
associated message.
|
void |
setTransportRelatesTo(String transportRelatesTo)
Sets the transport relates to property that allows asynchronous transport layer
messages to be correlated with their associated requests.
For SOAP this is mapped to/from <wsa:RelatesTo/>. |
void |
setTransportReplyTo(String transportReplyTo)
Sets the transport address property that allows asynchronous transport layer
responses to be returned.
For SOAP this is mapped to/from <wsa:ReplyTo/>.Note if the transport does not support a distinct replyTo property
this should be set to the same as the ITKTransportProperties.setTransportFrom(String) |
void |
setTransportTo(String transportTo)
Sets the transport hop destination.
|
void |
setTransportType(String transportType)
Sets the transport type associated with this transport hop
|
String |
toString() |
public ITKTransportPropertiesImpl(String transportType)
transportType - the transport typepublic String getTransportFrom()
ITKTransportProperties<wsa:From/>.getTransportFrom in interface ITKTransportPropertiespublic void setTransportFrom(String transportFrom)
ITKTransportProperties<wsa:From/>.setTransportFrom in interface ITKTransportPropertiestransportFrom - The address of the message originatorpublic String getTransportTo()
ITKTransportPropertiesITKTransportProperties.getInvokedUrl()getTransportTo in interface ITKTransportPropertiespublic void setTransportTo(String transportTo)
ITKTransportPropertiesITKTransportProperties.setInvokedUrl(String)setTransportTo in interface ITKTransportPropertiestransportTo - The destination system addresspublic String getInvokedUrl()
ITKTransportProperties<wsa:To/>getInvokedUrl in interface ITKTransportPropertiespublic void setInvokedUrl(String invokedUrl)
ITKTransportProperties<wsa:To/>setInvokedUrl in interface ITKTransportPropertiesinvokedUrl - The URL of the transport hop
destinationpublic String getTransportRelatesTo()
ITKTransportProperties<wsa:RelatesTo/>.getTransportRelatesTo in interface ITKTransportPropertiesnullpublic void setTransportRelatesTo(String transportRelatesTo)
ITKTransportProperties<wsa:RelatesTo/>.setTransportRelatesTo in interface ITKTransportPropertiestransportRelatesTo - The message id of the message to which this relates.
For request messages this should be nullpublic String getTransportReplyTo()
ITKTransportProperties<wsa:ReplyTo/>.replyTo property
this should return the same as the ITKTransportProperties.getTransportFrom()getTransportReplyTo in interface ITKTransportPropertieshttp://myserver.com/responsehandlerpublic void setTransportReplyTo(String transportReplyTo)
ITKTransportProperties<wsa:ReplyTo/>.replyTo property
this should be set to the same as the ITKTransportProperties.setTransportFrom(String)setTransportReplyTo in interface ITKTransportPropertiestransportReplyTo - The transport reply to address - e.g.
http://myserver.com/responsehandlerpublic String getTransportFaultTo()
ITKTransportProperties<wsa:FaultTo/>faultTo property
this should return the same as ITKTransportProperties.getTransportReplyTo() property
or failing that the ITKTransportProperties.getTransportFrom()getTransportFaultTo in interface ITKTransportPropertieshttp://myserver.com/faulthandlerpublic void setTransportFaultTo(String transportFaultTo)
ITKTransportProperties<wsa:FaultTo/>.faultTo property
this should be set to the same as ITKTransportProperties.setTransportReplyTo(String) property
or failing that the ITKTransportProperties.setTransportFrom(String)setTransportFaultTo in interface ITKTransportPropertiestransportFaultTo - The transport fault to address - e.g.
http://myserver.com/faulthandlerpublic String getTransportAction()
ITKTransportProperties<wsa:Action/>getTransportAction in interface ITKTransportPropertiesurn:nhs-itk:services:201005:transferPatient-v1-0public void setTransportAction(String transportAction)
ITKTransportProperties<wsa:Action/>setTransportAction in interface ITKTransportPropertiestransportAction - The transport action - e.g.
urn:nhs-itk:services:201005:transferPatient-v1-0@Requirement(traceTo="WS-ADR-01",
status="implemented")
public String getTransportMessageId()
ITKTransportProperties<wsa:MessageID/>).getTransportMessageId in interface ITKTransportPropertiestransportMessageId for
the transport hop@Requirement(traceTo="WS-ADR-01",
status="implemented")
public void setTransportMessageId(String transportMessageId)
ITKTransportProperties<wsa:MessageID/>).setTransportMessageId in interface ITKTransportPropertiespublic void setTransportType(String transportType)
ITKTransportPropertiessetTransportType in interface ITKTransportPropertiestransportType - The transportType. Can be one of
ITKTransportRoute.DTS; ITKTransportRoute.HTTP_WS;
ITKTransportRoute.SPINE_TMS or ITKTransportRoute.UNKNOWNpublic ITKTransportRoute getTransportFaultToRoute()
ITKTransportPropertiesITKTransportRoute for returning asynchronous
faults to.getTransportFaultToRoute in interface ITKTransportPropertiesITKTransportRoute or null
if there is no ITKTransportProperties.getTransportFaultTo() address specified.public ITKTransportRoute getTransportReplyToRoute()
ITKTransportPropertiesITKTransportRoute for returning asynchronous
response messages to.getTransportReplyToRoute in interface ITKTransportPropertiesITKTransportRoute or null
if there is no ITKTransportProperties.getTransportReplyTo() address specified.@Requirement(traceTo="WS-EXT-03",
status="not-started")
public static ITKTransportProperties buildFromSoap(Document doc)
throws ITKMessagingException
doc - the docITKMessagingException - the iTK messaging exceptionAll 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