public abstract class CoLocatedMessageContext extends java.lang.Object implements InboundTransportMessageContext, OutboundTransportMessageContext
Modifier and Type | Field and Description |
---|---|
protected TransportSendListener |
_listener |
protected java.lang.String |
_msgId |
protected TransportOptions |
_options |
protected RequestMetaData |
_reqMetaData |
protected Source |
_reqSrc |
protected ResponseMetaData |
_respMetaData |
protected Source |
_respSrc |
protected ServiceTransportSender |
_sender |
protected TransportEndPoint |
_tep |
Modifier | Constructor and Description |
---|---|
protected |
CoLocatedMessageContext(ServiceTransportSender sender, TransportOptions options)
ctor
|
Modifier and Type | Method and Description |
---|---|
void |
close(TransportOptions options)
Commits the contents of this context and clean up any resources used by this context.
|
protected RequestMetaData |
filterOutUnneededHeaders(RequestMetaData rmd)
http://bugs.bea.com/WebClarify/CRView?CR=CR251184 Get All Headers check box is ignored if the service is collocated
|
TransportEndPoint |
getEndPoint() |
java.lang.String |
getMessageId() |
RequestMetaData |
getRequestMetaData() |
Source |
getRequestPayload() |
ResponseMetaData |
getResponseMetaData() |
Source |
getResponsePayload()
client should not need to read the body of the response on the inbound message
|
protected java.util.Collection<java.lang.String> |
getStandardHeaderNames()
util method gathering all standard headers note: standard headers must be optional simple type elements.
|
java.net.URI |
getURI() |
protected TransportOptions |
newTransportOptions()
transfer options from inbound to outbound
|
void |
send(TransportSendListener listener) |
void |
setResponseMetaData(ResponseMetaData rmd)
Sets the meta-data for the response part of the message, e.g.
|
void |
setResponsePayload(Source src)
Sets the response payload into the message context Important note: the transport provider is free to access the response payload source from the moment this method call is made up all the way until
InboundTransportMessageContext.close(TransportOptions) is called. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
createResponseMetaData, createResponseMetaData
protected TransportEndPoint _tep
protected java.lang.String _msgId
protected Source _reqSrc
protected Source _respSrc
protected RequestMetaData _reqMetaData
protected ResponseMetaData _respMetaData
protected TransportSendListener _listener
protected TransportOptions _options
protected ServiceTransportSender _sender
protected CoLocatedMessageContext(ServiceTransportSender sender, TransportOptions options) throws TransportException
TransportException
public java.net.URI getURI()
getURI
in interface TransportMessageContext
public TransportEndPoint getEndPoint()
getEndPoint
in interface InboundTransportMessageContext
public java.lang.String getMessageId()
getMessageId
in interface TransportMessageContext
public RequestMetaData getRequestMetaData() throws TransportException
getRequestMetaData
in interface InboundTransportMessageContext
TransportException
public Source getRequestPayload() throws TransportException
getRequestPayload
in interface InboundTransportMessageContext
TransportException
public ResponseMetaData getResponseMetaData()
getResponseMetaData
in interface OutboundTransportMessageContext
public void setResponseMetaData(ResponseMetaData rmd) throws TransportException
InboundTransportMessageContext
setResponseMetaData
in interface InboundTransportMessageContext
rmd
- Transport Provider-specific POJO that represents response meta dataTransportException
public Source getResponsePayload() throws TransportException
getResponsePayload
in interface OutboundTransportMessageContext
TransportException
public void setResponsePayload(Source src) throws TransportException
InboundTransportMessageContext
InboundTransportMessageContext.close(TransportOptions)
is called. Any access of response payload source after close() has been called can lead to unpredictable results and is generally unsafe.setResponsePayload
in interface InboundTransportMessageContext
src
- source containing the response payloadTransportException
public void send(TransportSendListener listener) throws TransportException
TransportException
protected TransportOptions newTransportOptions()
protected RequestMetaData filterOutUnneededHeaders(RequestMetaData rmd) throws TransportException
TransportException
protected java.util.Collection<java.lang.String> getStandardHeaderNames() throws TransportException
TransportException
public void close(TransportOptions options)
InboundTransportMessageContext
close
in interface InboundTransportMessageContext
options
- specifies additional run-time parameters with respect to processing of inbound response. E.g. it can signal the mode of a given message: one-way versus request/response