| 
 | Java™ Platform Standard Ed. 6 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface MessageContext
The interface 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.
| Nested Class Summary | |
|---|---|
| static class | MessageContext.ScopeProperty scope. | 
| Nested classes/interfaces inherited from interface java.util.Map | 
|---|
| Map.Entry<K,V> | 
| Field Summary | |
|---|---|
| static String | HTTP_REQUEST_HEADERSStandard property: HTTP request headers. | 
| static String | HTTP_REQUEST_METHODStandard property: HTTP request method. | 
| static String | HTTP_RESPONSE_CODEStandard property: HTTP response status code. | 
| static String | HTTP_RESPONSE_HEADERSStandard property: HTTP response headers. | 
| static String | INBOUND_MESSAGE_ATTACHMENTSStandard 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_PROPERTYStandard property: message direction, truefor
  outbound messages,falsefor inbound. | 
| static String | OUTBOUND_MESSAGE_ATTACHMENTSStandard property: Map of attachments to a message for the outbound message, key is the MIME Content-ID, value is a DataHandler. | 
| static String | PATH_INFOStandard property: Request Path Info | 
| static String | QUERY_STRINGStandard property: Query string for request. | 
| static String | SERVLET_CONTEXTStandard property: servlet context object. | 
| static String | SERVLET_REQUESTStandard property: servlet request object. | 
| static String | SERVLET_RESPONSEStandard property: servlet response object. | 
| static String | WSDL_DESCRIPTIONStandard property: input source for WSDL document. | 
| static String | WSDL_INTERFACEStandard property: name of wsdl interface (2.0) or port type (1.1). | 
| static String | WSDL_OPERATIONStandard property: name of WSDL operation. | 
| static String | WSDL_PORTStandard property: name of WSDL port. | 
| static String | WSDL_SERVICEStandard property: name of WSDL service. | 
| Method Summary | |
|---|---|
|  MessageContext.Scope | getScope(String name)Gets the scope of a property. | 
|  void | setScope(String name,
         MessageContext.Scope scope)Sets the scope of a property. | 
| Methods inherited from interface java.util.Map | 
|---|
| clear, containsKey, containsValue, entrySet, equals, get, hashCode, isEmpty, keySet, put, putAll, remove, size, values | 
| Field Detail | 
|---|
static final String MESSAGE_OUTBOUND_PROPERTY
true for
  outbound messages, false for inbound.
  Type: boolean
static final String INBOUND_MESSAGE_ATTACHMENTS
Type: java.util.Map 
static final String OUTBOUND_MESSAGE_ATTACHMENTS
Type: java.util.Map 
static final String WSDL_DESCRIPTION
Type: org.xml.sax.InputSource
static final String WSDL_SERVICE
Type: javax.xml.namespace.QName
static final String WSDL_PORT
Type: javax.xml.namespace.QName
static final String WSDL_INTERFACE
Type: javax.xml.namespace.QName
static final String WSDL_OPERATION
Type: javax.xml.namespace.QName
static final String HTTP_RESPONSE_CODE
Type: java.lang.Integer
static final String HTTP_REQUEST_HEADERS
Type: java.util.Map 
static final String HTTP_RESPONSE_HEADERS
Type: java.util.Map 
static final String HTTP_REQUEST_METHOD
Type: java.lang.String
static final String SERVLET_REQUEST
Type: javax.servlet.http.HttpServletRequest
static final String SERVLET_RESPONSE
Type: javax.servlet.http.HttpServletResponse
static final String SERVLET_CONTEXT
Type: javax.servlet.ServletContext
static final String QUERY_STRING
Type: String
static final String PATH_INFO
Type: String
| Method Detail | 
|---|
void setScope(String name,
              MessageContext.Scope scope)
name - Name of the property associated with the 
              MessageContextscope - Desired scope of the property
IllegalArgumentException - if an illegal
              property name is specifiedMessageContext.Scope getScope(String name)
name - Name of the property
IllegalArgumentException - if a non-existant
              property name is specified| 
 | Java™ Platform Standard Ed. 6 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Copyright 2006 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.