public interface ITKTransportProperties
ITKMessage
.<soap/>
however they should be abstract enough to represent for different
transports such as TMS and DTSITKMessageProperties
,
ITKMessage
Modifier and Type | Method and Description |
---|---|
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 getTransportReplyTo() property
or failing that the 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 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 setTransportReplyTo(String) property
or failing that the 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 setTransportFrom(String) |
void |
setTransportTo(String transportTo)
Sets the transport hop destination.
|
void |
setTransportType(String transportType)
Sets the transport type associated with this transport hop
|
@Requirement(traceTo="WS-ADR-01", status="abstract") void setTransportMessageId(String transportMessageId)
<wsa:MessageID/>
).transportMessageId
- @Requirement(traceTo="WS-ADR-01", status="abstract") String getTransportMessageId()
<wsa:MessageID/>
).transportMessageId
for
the transport hopvoid setInvokedUrl(String invokedUrl)
<wsa:To/>
invokedUrl
- The URL of the transport hop
destinationString getInvokedUrl()
<wsa:To/>
void setTransportAction(String transportAction)
<wsa:Action/>
transportAction
- The transport action - e.g.
urn:nhs-itk:services:201005:transferPatient-v1-0
String getTransportAction()
<wsa:Action/>
urn:nhs-itk:services:201005:transferPatient-v1-0
void setTransportFaultTo(String transportFaultTo)
<wsa:FaultTo/>
.faultTo
property
this should be set to the same as setTransportReplyTo(String)
property
or failing that the setTransportFrom(String)
transportFaultTo
- The transport fault to address - e.g.
http://myserver.com/faulthandler
String getTransportFaultTo()
<wsa:FaultTo/>
faultTo
property
this should return the same as getTransportReplyTo()
property
or failing that the getTransportFrom()
http://myserver.com/faulthandler
void setTransportReplyTo(String transportReplyTo)
<wsa:ReplyTo/>
.replyTo
property
this should be set to the same as the setTransportFrom(String)
transportReplyTo
- The transport reply to address - e.g.
http://myserver.com/responsehandler
String getTransportReplyTo()
<wsa:ReplyTo/>
.replyTo
property
this should return the same as the getTransportFrom()
http://myserver.com/responsehandler
void setTransportRelatesTo(String transportRelatesTo)
<wsa:RelatesTo/>
.transportRelatesTo
- The message id of the message to which this relates.
For request messages this should be null
String getTransportRelatesTo()
<wsa:RelatesTo/>
.null
void setTransportTo(String transportTo)
setInvokedUrl(String)
transportTo
- The destination system addressString getTransportTo()
getInvokedUrl()
void setTransportFrom(String transportFrom)
<wsa:From/>
.transportFrom
- The address of the message originatorString getTransportFrom()
<wsa:From/>
.void setTransportType(String transportType)
transportType
- The transportType. Can be one of
ITKTransportRoute.DTS
; ITKTransportRoute.HTTP_WS
;
ITKTransportRoute.SPINE_TMS
or ITKTransportRoute.UNKNOWN
ITKTransportRoute getTransportReplyToRoute()
ITKTransportRoute
for returning asynchronous
response messages to.ITKTransportRoute
or null
if there is no getTransportReplyTo()
address specified.ITKTransportRoute getTransportFaultToRoute()
ITKTransportRoute
for returning asynchronous
faults to.ITKTransportRoute
or null
if there is no getTransportFaultTo()
address specified.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