Package org.apache.axis2.jaxws.handler
Class MEPContext
- java.lang.Object
-
- org.apache.axis2.jaxws.handler.MEPContext
-
- All Implemented Interfaces:
Map<String,Object>
,MessageContext
public class MEPContext extends Object implements MessageContext
The MEPContext is the version of the MessageContext that will be given to application handlers as the handler list is traversed. It is only to be used by application handlers. The MEPContext object is constructed using a non-null request context. Once the request has been fully processed in the JAX-WS engine, the response context should be set on this. Since the response context is always last, it takes priority in all MEPContext methods.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface java.util.Map
Map.Entry<K extends Object,V extends Object>
-
Nested classes/interfaces inherited from interface javax.xml.ws.handler.MessageContext
MessageContext.Scope
-
-
Field Summary
Fields Modifier and Type Field Description protected MessageContext
requestMC
protected MessageContext
responseMC
-
Fields inherited from interface javax.xml.ws.handler.MessageContext
HTTP_REQUEST_HEADERS, HTTP_REQUEST_METHOD, HTTP_RESPONSE_CODE, HTTP_RESPONSE_HEADERS, INBOUND_MESSAGE_ATTACHMENTS, MESSAGE_OUTBOUND_PROPERTY, OUTBOUND_MESSAGE_ATTACHMENTS, PATH_INFO, QUERY_STRING, REFERENCE_PARAMETERS, SERVLET_CONTEXT, SERVLET_REQUEST, SERVLET_RESPONSE, WSDL_DESCRIPTION, WSDL_INTERFACE, WSDL_OPERATION, WSDL_PORT, WSDL_SERVICE
-
-
Constructor Summary
Constructors Constructor Description MEPContext(MessageContext requestMsgCtx)
-
Method Summary
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, equals, forEach, getOrDefault, hashCode, merge, putIfAbsent, remove, replace, replace, replaceAll
-
-
-
-
Field Detail
-
requestMC
protected MessageContext requestMC
-
responseMC
protected MessageContext responseMC
-
-
Constructor Detail
-
MEPContext
public MEPContext(MessageContext requestMsgCtx)
-
-
Method Detail
-
getEndpointDesc
public EndpointDescription getEndpointDesc()
-
getRequestMessageContext
public MessageContext getRequestMessageContext()
-
getResponseMessageContext
public MessageContext getResponseMessageContext()
-
getMessageContext
public MessageContext getMessageContext()
-
setResponseMessageContext
public void setResponseMessageContext(MessageContext responseMC)
-
setMessage
public void setMessage(Message msg)
-
getScope
public MessageContext.Scope getScope(String s)
- Specified by:
getScope
in interfaceMessageContext
-
setScope
public void setScope(String s, MessageContext.Scope scope)
- Specified by:
setScope
in interfaceMessageContext
-
containsKey
public boolean containsKey(Object key)
- Specified by:
containsKey
in interfaceMap<String,Object>
-
containsValue
public boolean containsValue(Object value)
- Specified by:
containsValue
in interfaceMap<String,Object>
-
values
public Collection values()
-
getMessageObject
public Message getMessageObject()
-
isApplicationAccessLocked
public boolean isApplicationAccessLocked()
-
setApplicationAccessLocked
public void setApplicationAccessLocked(boolean applicationAccessLocked)
-
getApplicationScopedProperties
public Map<String,Object> getApplicationScopedProperties()
The returned tempMap should be used as a read-only map as changes to it will not propogate into the requestMC or responseMC Watch out for infinite loop if you call another method in this class that uses this method.- Returns:
-
-