Interface MessageContext
-
- All Superinterfaces:
java.util.Map<java.lang.String,java.lang.Object>
- All Known Subinterfaces:
LogicalMessageContext
,SOAPMessageContext
public interface MessageContext extends java.util.Map<java.lang.String,java.lang.Object>
The interfaceMessageContext
abstracts the message context that is processed by a handler in thehandle
method.The
MessageContext
interface provides methods to manage a property set.MessageContext
properties enable handlers in a handler chain to share processing related state.- Since:
- 1.6, JAX-WS 2.0
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
MessageContext.Scope
Property scope.
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
HTTP_REQUEST_HEADERS
Standard property: HTTP request headers.static java.lang.String
HTTP_REQUEST_METHOD
Standard property: HTTP request method.static java.lang.String
HTTP_RESPONSE_CODE
Standard property: HTTP response status code.static java.lang.String
HTTP_RESPONSE_HEADERS
Standard property: HTTP response headers.static java.lang.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 java.lang.String
MESSAGE_OUTBOUND_PROPERTY
Standard property: message direction,true
for outbound messages,false
for inbound.static java.lang.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 java.lang.String
PATH_INFO
Standard property: Request Path Infostatic java.lang.String
QUERY_STRING
Standard property: Query string for request.static java.lang.String
REFERENCE_PARAMETERS
Standard property: WS Addressing Reference Parameters.static java.lang.String
SERVLET_CONTEXT
Standard property: servlet context object.static java.lang.String
SERVLET_REQUEST
Standard property: servlet request object.static java.lang.String
SERVLET_RESPONSE
Standard property: servlet response object.static java.lang.String
WSDL_DESCRIPTION
Standard property: input source for WSDL document.static java.lang.String
WSDL_INTERFACE
Standard property: name of wsdl interface (2.0) or port type (1.1).static java.lang.String
WSDL_OPERATION
Standard property: name of WSDL operation.static java.lang.String
WSDL_PORT
Standard property: name of WSDL port.static java.lang.String
WSDL_SERVICE
Standard property: name of WSDL service.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description MessageContext.Scope
getScope(java.lang.String name)
Gets the scope of a property.void
setScope(java.lang.String name, MessageContext.Scope scope)
Sets the scope of a property.
-
-
-
Field Detail
-
MESSAGE_OUTBOUND_PROPERTY
static final java.lang.String MESSAGE_OUTBOUND_PROPERTY
Standard property: message direction,true
for outbound messages,false
for inbound.Type: boolean
- See Also:
- Constant Field Values
-
INBOUND_MESSAGE_ATTACHMENTS
static final java.lang.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.Type:
java.util.Map<String, DataHandler>
- See Also:
- Constant Field Values
-
OUTBOUND_MESSAGE_ATTACHMENTS
static final java.lang.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.Type:
java.util.Map<String, DataHandler>
- See Also:
- Constant Field Values
-
WSDL_DESCRIPTION
static final java.lang.String WSDL_DESCRIPTION
Standard property: input source for WSDL document.Type: org.xml.sax.InputSource
- See Also:
- Constant Field Values
-
WSDL_SERVICE
static final java.lang.String WSDL_SERVICE
Standard property: name of WSDL service.Type: javax.xml.namespace.QName
- See Also:
- Constant Field Values
-
WSDL_PORT
static final java.lang.String WSDL_PORT
Standard property: name of WSDL port.Type: javax.xml.namespace.QName
- See Also:
- Constant Field Values
-
WSDL_INTERFACE
static final java.lang.String WSDL_INTERFACE
Standard property: name of wsdl interface (2.0) or port type (1.1).Type: javax.xml.namespace.QName
- See Also:
- Constant Field Values
-
WSDL_OPERATION
static final java.lang.String WSDL_OPERATION
Standard property: name of WSDL operation.Type: javax.xml.namespace.QName
- See Also:
- Constant Field Values
-
HTTP_RESPONSE_CODE
static final java.lang.String HTTP_RESPONSE_CODE
Standard property: HTTP response status code.Type: java.lang.Integer
- See Also:
- Constant Field Values
-
HTTP_REQUEST_HEADERS
static final java.lang.String HTTP_REQUEST_HEADERS
Standard property: HTTP request headers.Type:
java.util.Map<java.lang.String, java.util.List<java.lang.String>>
- See Also:
- Constant Field Values
-
HTTP_RESPONSE_HEADERS
static final java.lang.String HTTP_RESPONSE_HEADERS
Standard property: HTTP response headers.Type:
java.util.Map<java.lang.String, java.util.List<java.lang.String>>
- See Also:
- Constant Field Values
-
HTTP_REQUEST_METHOD
static final java.lang.String HTTP_REQUEST_METHOD
Standard property: HTTP request method.Type: java.lang.String
- See Also:
- Constant Field Values
-
SERVLET_REQUEST
static final java.lang.String SERVLET_REQUEST
Standard property: servlet request object.Type: jakarta.servlet.http.HttpServletRequest
- See Also:
- Constant Field Values
-
SERVLET_RESPONSE
static final java.lang.String SERVLET_RESPONSE
Standard property: servlet response object.Type: jakarta.servlet.http.HttpServletResponse
- See Also:
- Constant Field Values
-
SERVLET_CONTEXT
static final java.lang.String SERVLET_CONTEXT
Standard property: servlet context object.Type: jakarta.servlet.ServletContext
- See Also:
- Constant Field Values
-
QUERY_STRING
static final java.lang.String QUERY_STRING
Standard property: Query string for request.Type: String
- See Also:
- Constant Field Values
-
PATH_INFO
static final java.lang.String PATH_INFO
Standard property: Request Path InfoType: String
- See Also:
- Constant Field Values
-
REFERENCE_PARAMETERS
static final java.lang.String REFERENCE_PARAMETERS
Standard property: WS Addressing Reference Parameters. The list MUST include all SOAP headers marked with the wsa:IsReferenceParameter="true" attribute.Type:
List<Element>
- Since:
- 1.6, JAX-WS 2.1
- See Also:
- Constant Field Values
-
-
Method Detail
-
setScope
void setScope(java.lang.String name, MessageContext.Scope scope)
Sets the scope of a property.- Parameters:
name
- Name of the property associated with theMessageContext
scope
- Desired scope of the property- Throws:
java.lang.IllegalArgumentException
- if an illegal property name is specified
-
getScope
MessageContext.Scope getScope(java.lang.String name)
Gets the scope of a property.- Parameters:
name
- Name of the property- Returns:
- Scope of the property
- Throws:
java.lang.IllegalArgumentException
- if a non-existant property name is specified
-
-