public final class EndpointMessageContextImpl extends AbstractMap<String,Object> implements MessageContext
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.
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
MessageContext.Scope
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 and Description |
---|
EndpointMessageContextImpl(Packet packet) |
Modifier and Type | Method and Description |
---|---|
Set<Map.Entry<String,Object>> |
entrySet() |
Object |
get(Object key) |
MessageContext.Scope |
getScope(String name) |
Object |
put(String key,
Object value) |
Object |
remove(Object key) |
void |
setScope(String name,
MessageContext.Scope scope) |
clear, clone, containsKey, containsValue, equals, hashCode, isEmpty, keySet, putAll, size, toString, values
finalize, getClass, notify, notifyAll, wait, wait, wait
clear, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, equals, forEach, getOrDefault, hashCode, isEmpty, keySet, merge, putAll, putIfAbsent, remove, replace, replace, replaceAll, size, values
public void setScope(String name, MessageContext.Scope scope)
setScope
in interface MessageContext
public MessageContext.Scope getScope(String name)
getScope
in interface MessageContext
Copyright (c) 1997-2012 Oracle and/or its affiliates. All rights reserved.