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 ITKTransportProperties
public void setTransportFrom(String transportFrom)
ITKTransportProperties
<wsa:From/>
.setTransportFrom
in interface ITKTransportProperties
transportFrom
- The address of the message originatorpublic String getTransportTo()
ITKTransportProperties
ITKTransportProperties.getInvokedUrl()
getTransportTo
in interface ITKTransportProperties
public void setTransportTo(String transportTo)
ITKTransportProperties
ITKTransportProperties.setInvokedUrl(String)
setTransportTo
in interface ITKTransportProperties
transportTo
- The destination system addresspublic String getInvokedUrl()
ITKTransportProperties
<wsa:To/>
getInvokedUrl
in interface ITKTransportProperties
public void setInvokedUrl(String invokedUrl)
ITKTransportProperties
<wsa:To/>
setInvokedUrl
in interface ITKTransportProperties
invokedUrl
- The URL of the transport hop
destinationpublic String getTransportRelatesTo()
ITKTransportProperties
<wsa:RelatesTo/>
.getTransportRelatesTo
in interface ITKTransportProperties
null
public void setTransportRelatesTo(String transportRelatesTo)
ITKTransportProperties
<wsa:RelatesTo/>
.setTransportRelatesTo
in interface ITKTransportProperties
transportRelatesTo
- The message id of the message to which this relates.
For request messages this should be null
public String getTransportReplyTo()
ITKTransportProperties
<wsa:ReplyTo/>
.replyTo
property
this should return the same as the ITKTransportProperties.getTransportFrom()
getTransportReplyTo
in interface ITKTransportProperties
http://myserver.com/responsehandler
public void setTransportReplyTo(String transportReplyTo)
ITKTransportProperties
<wsa:ReplyTo/>
.replyTo
property
this should be set to the same as the ITKTransportProperties.setTransportFrom(String)
setTransportReplyTo
in interface ITKTransportProperties
transportReplyTo
- The transport reply to address - e.g.
http://myserver.com/responsehandler
public 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 ITKTransportProperties
http://myserver.com/faulthandler
public 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 ITKTransportProperties
transportFaultTo
- The transport fault to address - e.g.
http://myserver.com/faulthandler
public String getTransportAction()
ITKTransportProperties
<wsa:Action/>
getTransportAction
in interface ITKTransportProperties
urn:nhs-itk:services:201005:transferPatient-v1-0
public void setTransportAction(String transportAction)
ITKTransportProperties
<wsa:Action/>
setTransportAction
in interface ITKTransportProperties
transportAction
- 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 ITKTransportProperties
transportMessageId
for
the transport hop@Requirement(traceTo="WS-ADR-01", status="implemented") public void setTransportMessageId(String transportMessageId)
ITKTransportProperties
<wsa:MessageID/>
).setTransportMessageId
in interface ITKTransportProperties
public void setTransportType(String transportType)
ITKTransportProperties
setTransportType
in interface ITKTransportProperties
transportType
- The transportType. Can be one of
ITKTransportRoute.DTS
; ITKTransportRoute.HTTP_WS
;
ITKTransportRoute.SPINE_TMS
or ITKTransportRoute.UNKNOWN
public ITKTransportRoute getTransportFaultToRoute()
ITKTransportProperties
ITKTransportRoute
for returning asynchronous
faults to.getTransportFaultToRoute
in interface ITKTransportProperties
ITKTransportRoute
or null
if there is no ITKTransportProperties.getTransportFaultTo()
address specified.public ITKTransportRoute getTransportReplyToRoute()
ITKTransportProperties
ITKTransportRoute
for returning asynchronous
response messages to.getTransportReplyToRoute
in interface ITKTransportProperties
ITKTransportRoute
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