org.apache.axis2.jaxws.handler
Class MEPContext

java.lang.Object
  extended by org.apache.axis2.jaxws.handler.MEPContext
All Implemented Interfaces:
java.util.Map<java.lang.String,java.lang.Object>, MessageContext

public class MEPContext
extends java.lang.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
java.util.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(java.lang.Object key)
           
 boolean containsValue(java.lang.Object value)
           
 java.util.Set entrySet()
           
 java.lang.Object get(java.lang.Object keyObject)
           
 java.util.Map<java.lang.String,java.lang.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(java.lang.String s)
           
 boolean isApplicationAccessLocked()
           
 boolean isEmpty()
           
 java.util.Set keySet()
           
 java.lang.Object put(java.lang.String key, java.lang.Object value)
           
 void putAll(java.util.Map t)
           
 java.lang.Object remove(java.lang.Object key)
           
 void setApplicationAccessLocked(boolean applicationAccessLocked)
           
 void setMessage(Message msg)
           
 void setResponseMessageContext(MessageContext responseMC)
           
 void setScope(java.lang.String s, MessageContext.Scope scope)
           
 int size()
           
 java.util.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(java.lang.String s)
Specified by:
getScope in interface MessageContext

setScope

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

clear

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

containsKey

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

containsValue

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

entrySet

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

get

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

isEmpty

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

keySet

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

put

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

putAll

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

remove

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

size

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

values

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

getMessageObject

public Message getMessageObject()

isApplicationAccessLocked

public boolean isApplicationAccessLocked()

setApplicationAccessLocked

public void setApplicationAccessLocked(boolean applicationAccessLocked)

getApplicationScopedProperties

public java.util.Map<java.lang.String,java.lang.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 © 2007 Apache Web Services Project. All Rights Reserved.