org.apache.axis2.jaxws.handler
Class MEPContext

java.lang.Object
  extended by 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 javax.xml.ws.handler.MessageContext
MessageContext.Scope
 
Nested classes/interfaces inherited from interface java.util.Map
Map.Entry<K,V>
 
Field Summary
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
MEPContext(MessageContext requestMsgCtx)
           
 
Method Summary
 void clear()
           
 boolean containsKey(Object key)
           
 boolean containsValue(Object value)
           
 Set entrySet()
           
 Object get(Object keyObject)
           
 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.
 EndpointDescription getEndpointDesc()
           
 MessageContext getMessageContext()
           
 Message getMessageObject()
           
 MessageContext getRequestMessageContext()
           
 MessageContext getResponseMessageContext()
           
 MessageContext.Scope getScope(String s)
           
 boolean isApplicationAccessLocked()
           
 boolean isEmpty()
           
 Set keySet()
           
 Object put(String key, Object value)
           
 void putAll(Map t)
           
 Object remove(Object key)
           
 void setApplicationAccessLocked(boolean applicationAccessLocked)
           
 void setMessage(Message msg)
           
 void setResponseMessageContext(MessageContext responseMC)
           
 void setScope(String s, MessageContext.Scope scope)
           
 int size()
           
 Collection values()
           
 
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
equals, hashCode
 

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 interface MessageContext

setScope

public void setScope(String s,
                     MessageContext.Scope scope)
Specified by:
setScope in interface MessageContext

clear

public void clear()
Specified by:
clear in interface Map<String,Object>

containsKey

public boolean containsKey(Object key)
Specified by:
containsKey in interface Map<String,Object>

containsValue

public boolean containsValue(Object value)
Specified by:
containsValue in interface Map<String,Object>

entrySet

public Set entrySet()
Specified by:
entrySet in interface Map<String,Object>

get

public Object get(Object keyObject)
Specified by:
get in interface Map<String,Object>

isEmpty

public boolean isEmpty()
Specified by:
isEmpty in interface Map<String,Object>

keySet

public Set keySet()
Specified by:
keySet in interface Map<String,Object>

put

public Object put(String key,
                  Object value)
Specified by:
put in interface Map<String,Object>

putAll

public void putAll(Map t)
Specified by:
putAll in interface Map<String,Object>

remove

public Object remove(Object key)
Specified by:
remove in interface Map<String,Object>

size

public int size()
Specified by:
size in interface Map<String,Object>

values

public Collection values()
Specified by:
values in interface Map<String,Object>

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:


Copyright © 2004-2012 The Apache Software Foundation. All Rights Reserved.