com.sun.xml.ws.server
Class EndpointMessageContextImpl

java.lang.Object
  extended by java.util.AbstractMap<String,Object>
      extended by com.sun.xml.ws.server.EndpointMessageContextImpl
All Implemented Interfaces:
Map<String,Object>, javax.xml.ws.handler.MessageContext

public final class EndpointMessageContextImpl
extends AbstractMap<String,Object>
implements javax.xml.ws.handler.MessageContext

Implements WebServiceContext's MessageContext on top of Packet.

This class creates a Map view for APPLICATION scoped properties that gets exposed to endpoint implementations during the invocation of web methods. The implementations access this map using WebServiceContext.getMessageContext().

Some of the Map methods requre this class to build the complete Set of properties, but we try to avoid that as much as possible.


Nested Class Summary
 
Nested classes/interfaces inherited from interface javax.xml.ws.handler.MessageContext
javax.xml.ws.handler.MessageContext.Scope
 
Nested classes/interfaces inherited from interface java.util.Map
Map.Entry<K,V>
 
Field Summary
 
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
EndpointMessageContextImpl(Packet packet)
           
 
Method Summary
 Set<Map.Entry<String,Object>> entrySet()
           
 Object get(Object key)
           
 javax.xml.ws.handler.MessageContext.Scope getScope(String name)
           
 Object put(String key, Object value)
           
 Object remove(Object key)
           
 void setScope(String name, javax.xml.ws.handler.MessageContext.Scope scope)
           
 
Methods inherited from class java.util.AbstractMap
clear, clone, containsKey, containsValue, equals, hashCode, isEmpty, keySet, putAll, size, toString, values
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Map
clear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, putAll, size, values
 

Constructor Detail

EndpointMessageContextImpl

public EndpointMessageContextImpl(Packet packet)
Parameters:
packet - The Packet to wrap.
Method Detail

get

public Object get(Object key)
Specified by:
get in interface Map<String,Object>
Overrides:
get in class AbstractMap<String,Object>

put

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

remove

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

entrySet

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

setScope

public void setScope(String name,
                     javax.xml.ws.handler.MessageContext.Scope scope)
Specified by:
setScope in interface javax.xml.ws.handler.MessageContext

getScope

public javax.xml.ws.handler.MessageContext.Scope getScope(String name)
Specified by:
getScope in interface javax.xml.ws.handler.MessageContext