-
- All Known Subinterfaces:
- LogicalMessageContext, SOAPMessageContext
public interface MessageContext extends Map<String,Object>
The interfaceMessageContextabstracts the message context that is processed by a handler in thehandlemethod.The
MessageContextinterface provides methods to manage a property set.MessageContextproperties enable handlers in a handler chain to share processing related state.- Since:
- JAX-WS 2.0
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface and Description static classMessageContext.ScopeProperty scope.
-
Field Summary
Fields Modifier and Type Field and Description static StringHTTP_REQUEST_HEADERSStandard property: HTTP request headers.static StringHTTP_REQUEST_METHODStandard property: HTTP request method.static StringHTTP_RESPONSE_CODEStandard property: HTTP response status code.static StringHTTP_RESPONSE_HEADERSStandard property: HTTP response headers.static StringINBOUND_MESSAGE_ATTACHMENTSStandard property: Map of attachments to a message for the inbound message, key is the MIME Content-ID, value is a DataHandler.static StringMESSAGE_OUTBOUND_PROPERTYStandard property: message direction,truefor outbound messages,falsefor inbound.static StringOUTBOUND_MESSAGE_ATTACHMENTSStandard property: Map of attachments to a message for the outbound message, key is the MIME Content-ID, value is a DataHandler.static StringPATH_INFOStandard property: Request Path Infostatic StringQUERY_STRINGStandard property: Query string for request.static StringREFERENCE_PARAMETERSStandard property: WS Addressing Reference Parameters.static StringSERVLET_CONTEXTStandard property: servlet context object.static StringSERVLET_REQUESTStandard property: servlet request object.static StringSERVLET_RESPONSEStandard property: servlet response object.static StringWSDL_DESCRIPTIONStandard property: input source for WSDL document.static StringWSDL_INTERFACEStandard property: name of wsdl interface (2.0) or port type (1.1).static StringWSDL_OPERATIONStandard property: name of WSDL operation.static StringWSDL_PORTStandard property: name of WSDL port.static StringWSDL_SERVICEStandard property: name of WSDL service.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method and Description MessageContext.ScopegetScope(String name)Gets the scope of a property.voidsetScope(String name, MessageContext.Scope scope)Sets the scope of a property.-
Methods inherited from interface java.util.Map
clear, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, equals, forEach, get, getOrDefault, hashCode, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
-
-
-
-
Field Detail
-
MESSAGE_OUTBOUND_PROPERTY
static final String MESSAGE_OUTBOUND_PROPERTY
Standard property: message direction,truefor outbound messages,falsefor inbound.Type: boolean
- See Also:
- Constant Field Values
-
INBOUND_MESSAGE_ATTACHMENTS
static final 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 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 String WSDL_DESCRIPTION
Standard property: input source for WSDL document.Type: org.xml.sax.InputSource
- See Also:
- Constant Field Values
-
WSDL_SERVICE
static final String WSDL_SERVICE
Standard property: name of WSDL service.Type: javax.xml.namespace.QName
- See Also:
- Constant Field Values
-
WSDL_PORT
static final String WSDL_PORT
Standard property: name of WSDL port.Type: javax.xml.namespace.QName
- See Also:
- Constant Field Values
-
WSDL_INTERFACE
static final 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 String WSDL_OPERATION
Standard property: name of WSDL operation.Type: javax.xml.namespace.QName
- See Also:
- Constant Field Values
-
HTTP_RESPONSE_CODE
static final String HTTP_RESPONSE_CODE
Standard property: HTTP response status code.Type: java.lang.Integer
- See Also:
- Constant Field Values
-
HTTP_REQUEST_HEADERS
static final 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 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 String HTTP_REQUEST_METHOD
Standard property: HTTP request method.Type: java.lang.String
- See Also:
- Constant Field Values
-
SERVLET_REQUEST
static final String SERVLET_REQUEST
Standard property: servlet request object.Type: javax.servlet.http.HttpServletRequest
- See Also:
- Constant Field Values
-
SERVLET_RESPONSE
static final String SERVLET_RESPONSE
Standard property: servlet response object.Type: javax.servlet.http.HttpServletResponse
- See Also:
- Constant Field Values
-
SERVLET_CONTEXT
static final String SERVLET_CONTEXT
Standard property: servlet context object.Type: javax.servlet.ServletContext
- See Also:
- Constant Field Values
-
QUERY_STRING
static final String QUERY_STRING
Standard property: Query string for request.Type: String
- See Also:
- Constant Field Values
-
PATH_INFO
static final String PATH_INFO
Standard property: Request Path InfoType: String
- See Also:
- Constant Field Values
-
REFERENCE_PARAMETERS
static final 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:
- JAX-WS 2.1
- See Also:
- Constant Field Values
-
-
Method Detail
-
setScope
void setScope(String name, MessageContext.Scope scope)
Sets the scope of a property.- Parameters:
name- Name of the property associated with theMessageContextscope- Desired scope of the property- Throws:
IllegalArgumentException- if an illegal property name is specified
-
getScope
MessageContext.Scope getScope(String name)
Gets the scope of a property.- Parameters:
name- Name of the property- Returns:
- Scope of the property
- Throws:
IllegalArgumentException- if a non-existant property name is specified
-
-
Traduction non disponible
Les API Java ne sont pas encore traduites en français sur l'infobrol. Seule la version anglaise est disponible pour l'instant.
Version en cache
07/10/2025 01:51:50 Cette version de la page est en cache (à la date du 07/10/2025 01:51:50) afin d'accélérer le traitement.Vous pouvez activer le mode utilisateur dans le menu en haut pour afficher la version plus récente de la page.
Document créé le 24/12/2007, dernière modification le 18/08/2025
Source du document imprimé : https://www.gaudry.be/java-api-javaee-rf-javax/xml/ws/handler/MessageContext.html
L'infobrol est un site personnel dont le contenu n'engage que moi. Le texte est mis à disposition sous licence CreativeCommons(BY-NC-SA). Plus d'info sur les conditions d'utilisation et sur l'auteur.
Références
Ces références et liens indiquent des documents consultés lors de la rédaction de cette page, ou qui peuvent apporter un complément d'information, mais les auteurs de ces sources ne peuvent être tenus responsables du contenu de cette page.
L'auteur de ce site est seul responsable de la manière dont sont présentés ici les différents concepts, et des libertés qui sont prises avec les ouvrages de référence. N'oubliez pas que vous devez croiser les informations de sources multiples afin de diminuer les risques d'erreurs.