public interface MessageContext extends Map<String ,Object >
MessageContext abstracts the message context that is processed by a handler in the
handle method.
The MessageContext interface provides methods to manage a property set. MessageContext properties enable handlers in a handler chain to share processing related state.
| Modifier and Type | Interface and Description |
|---|---|
static class |
MessageContext
Property scope.
|
| Modifier and Type | Field and Description |
|---|---|
static String |
HTTP_REQUEST_HEADERS
Standard property: HTTP request headers.
|
static String |
HTTP_REQUEST_METHOD
Standard property: HTTP request method.
|
static String |
HTTP_RESPONSE_CODE
Standard property: HTTP response status code.
|
static String |
HTTP_RESPONSE_HEADERS
Standard property: HTTP response headers.
|
static String |
INBOUND_MESSAGE_ATTACHMENTS
Standard property: Map of attachments to a message for the inbound message, key is the MIME Content-ID, value is a DataHandler.
|
static String |
MESSAGE_OUTBOUND_PROPERTY
Standard property: message direction,
true for outbound messages,
false for inbound.
|
static String |
OUTBOUND_MESSAGE_ATTACHMENTS
Standard property: Map of attachments to a message for the outbound message, key is the MIME Content-ID, value is a DataHandler.
|
static String |
PATH_INFO
Standard property: Request Path Info
|
static String |
QUERY_STRING
Standard property: Query string for request.
|
static String |
REFERENCE_PARAMETERS
Standard property: WS Addressing Reference Parameters.
|
static String |
SERVLET_CONTEXT
Standard property: servlet context object.
|
static String |
SERVLET_REQUEST
Standard property: servlet request object.
|
static String |
SERVLET_RESPONSE
Standard property: servlet response object.
|
static String |
WSDL_DESCRIPTION
Standard property: input source for WSDL document.
|
static String |
WSDL_INTERFACE
Standard property: name of wsdl interface (2.0) or port type (1.1).
|
static String |
WSDL_OPERATION
Standard property: name of WSDL operation.
|
static String |
WSDL_PORT
Standard property: name of WSDL port.
|
static String |
WSDL_SERVICE
Standard property: name of WSDL service.
|
| Modifier and Type | Method and Description |
|---|---|
MessageContext |
getScope(String
Gets the scope of a property.
|
void |
setScope(String
Sets the scope of a property.
|
clear, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, equals, forEach, get, getOrDefault, hashCode, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, valuesstatic final StringMESSAGE_OUTBOUND_PROPERTY
true for outbound messages,
false for inbound.
Type: boolean
static final StringINBOUND_MESSAGE_ATTACHMENTS
Type: java.util.Map<String,DataHandler>
static final StringOUTBOUND_MESSAGE_ATTACHMENTS
Type: java.util.Map<String,DataHandler>
static final StringWSDL_DESCRIPTION
Type: org.xml.sax.InputSource
static final StringWSDL_SERVICE
Type: javax.xml.namespace.QName
static final StringWSDL_PORT
Type: javax.xml.namespace.QName
static final StringWSDL_INTERFACE
Type: javax.xml.namespace.QName
static final StringWSDL_OPERATION
Type: javax.xml.namespace.QName
static final StringHTTP_RESPONSE_CODE
Type: java.lang.Integer
static final StringHTTP_REQUEST_HEADERS
Type: java.util.Map<java.lang.String, java.util.List<java.lang.String>>
static final StringHTTP_RESPONSE_HEADERS
Type: java.util.Map<java.lang.String, java.util.List<java.lang.String>>
static final StringHTTP_REQUEST_METHOD
Type: java.lang.String
static final StringSERVLET_REQUEST
Type: javax.servlet.http.HttpServletRequest
static final StringSERVLET_RESPONSE
Type: javax.servlet.http.HttpServletResponse
static final StringSERVLET_CONTEXT
Type: javax.servlet.ServletContext
static final StringQUERY_STRING
Type: String
static final StringPATH_INFO
Type: String
static final StringREFERENCE_PARAMETERS
Type: List<Element>
void setScope(Stringname, MessageContext .Scope scope)
name - Name of the property associated with the
MessageContext
scope - Desired scope of the property
IllegalArgumentException - if an illegal property name is specified
MessageContext.Scope getScope(String name)
name - Name of the property
IllegalArgumentException - if a non-existant property name is specified