|
Oracle Fusion Middleware Java API Reference for Oracle Service Bus 11g Release 1 (11.1.1.5.0) E15033-03 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
com.bea.wli.sb.transports.CoLocatedMessageContext
public abstract class CoLocatedMessageContext
This class needs to be extended by a transport provider that implements optimization for co-located outbound calls to go through a Java method invokation instead of transport layer. For an example implementation, see com.bea.alsb.transports.sock.SocketCoLocatedMessageContext
Method Summary | |
---|---|
void |
close(TransportOptions options) Commits the contents of this context and clean up any resources used by this context. |
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 |
java.net.URI |
getURI() |
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. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.bea.wli.sb.transports.InboundTransportMessageContext |
---|
createResponseMetaData, createResponseMetaData |
Method Detail |
---|
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
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
|
Oracle Fusion Middleware Java API Reference for Oracle Service Bus 11g Release 1 (11.1.1.5.0) E15033-03 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |