Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle Service Bus
11g Release 1 (11.1.1.6.3)

E15033-08


com.bea.wli.sb.transports
Interface TransportMessageContext

All Known Subinterfaces:
InboundTransportMessageContext, InboundTransportMessageContextExtension, OutboundTransportMessageContext
All Known Implementing Classes:
CoLocatedMessageContext

public interface TransportMessageContext

Most message-oriented middleware (MOM) products treat messages as lightweight entities that consist of a header and a payload. The header contains fields used for message routing and identification; the payload contains the application data being sent In general, the transport-level message context consists of the following:

    TransportMessageContext
        message id           - unique id which identifies this message
        RequestMetaData      - meta data is not carried in the payload of
                               the message, but separately and is used
                               as the "context" for processing the message.
                               Examples of such information might be
                               transmitted in the mata data are the Content
                               Type header, security information, or locale
                               information. Base for the schema is defined in
                               TransportCommon.xsd, extensions defined
                               in each transport provider-specific schema
            headers          - request headers
        request body         - the payload of the request
        ResponseMetaData     - base for the schema is defined in
                               TransportCommon.xsd, extensions defined
                               in each transport provider-specific schema
            headers          - response headers
            response code    - success/failure status code
            response message - typically a one-line response message
        response body        - the payload of the response
    

Method Summary
 java.lang.String getMessageId()
           
 java.net.URI getURI()
           

 

Method Detail

getURI

java.net.URI getURI()
Returns:
the base uri for to which the message was sent for an outbound message or from which the message was sent on an inbound message

getMessageId

java.lang.String getMessageId()
Returns:
returns transport provider-specific message identifier. Ideally it should uniquely identify the message among other messages going through the OSB runtime, However, OSB does not depend on the message Id being unique. The message Id will be added to the message context and thus visible in the pipeline.

Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle Service Bus
11g Release 1 (11.1.1.6.3)

E15033-08


Copyright © 2008, 2012, Oracle. All rights reserved.