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, waitcreateResponseMetaData, createResponseMetaDataprotected 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
TransportExceptionpublic java.net.URI getURI()
getURI in interface TransportMessageContextpublic TransportEndPoint getEndPoint()
getEndPoint in interface InboundTransportMessageContextpublic java.lang.String getMessageId()
getMessageId in interface TransportMessageContextpublic RequestMetaData getRequestMetaData() throws TransportException
getRequestMetaData in interface InboundTransportMessageContextTransportExceptionpublic Source getRequestPayload() throws TransportException
getRequestPayload in interface InboundTransportMessageContextTransportExceptionpublic ResponseMetaData getResponseMetaData()
getResponseMetaData in interface OutboundTransportMessageContextpublic void setResponseMetaData(ResponseMetaData rmd) throws TransportException
InboundTransportMessageContextsetResponseMetaData in interface InboundTransportMessageContextrmd - Transport Provider-specific POJO that represents response meta dataTransportExceptionpublic Source getResponsePayload() throws TransportException
getResponsePayload in interface OutboundTransportMessageContextTransportExceptionpublic void setResponsePayload(Source src) throws TransportException
InboundTransportMessageContextInboundTransportMessageContext.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 InboundTransportMessageContextsrc - source containing the response payloadTransportExceptionpublic void send(TransportSendListener listener) throws TransportException
TransportExceptionprotected TransportOptions newTransportOptions()
protected RequestMetaData filterOutUnneededHeaders(RequestMetaData rmd) throws TransportException
TransportException
protected java.util.Collection<java.lang.String> getStandardHeaderNames()
throws TransportException
TransportExceptionpublic void close(TransportOptions options)
InboundTransportMessageContextclose in interface InboundTransportMessageContextoptions - 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