Package com.sun.xml.ws.client
Class ResponseContext
- java.lang.Object
-
- java.util.AbstractMap<String,Object>
-
- com.sun.xml.ws.client.ResponseContext
-
public class ResponseContext extends AbstractMap<String,Object>
Implements "response context" on top ofPacket.This class creates a read-only
Mapview that gets exposed to client applications after an invocation is complete.The design goal of this class is to make it efficient to create a new
ResponseContext, at the expense of making someMapoperations slower. This is justified because the response context is mostly just used to query a few known values, and operations like enumeration isn't likely.Some of the
Mapmethods requre this class to build the completeSetof properties, but we try to avoid that as much as possible.TODO: are we exposing all strongly-typed fields, or do they have appliation/handler scope notion?
- Author:
- Kohsuke Kawaguchi
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K extends Object,V extends Object>, AbstractMap.SimpleImmutableEntry<K extends Object,V extends Object>
-
-
Constructor Summary
Constructors Constructor Description ResponseContext(Packet packet)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclear()booleancontainsKey(Object key)Set<Map.Entry<String,Object>>entrySet()Objectget(Object key)Objectput(String key, Object value)voidputAll(Map<? extends String,? extends Object> t)Objectremove(Object key)-
Methods inherited from class java.util.AbstractMap
clone, containsValue, equals, hashCode, isEmpty, keySet, size, toString, values
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
-
-
-
-
Method Detail
-
containsKey
public boolean containsKey(Object key)
- Specified by:
containsKeyin interfaceMap<String,Object>- Overrides:
containsKeyin classAbstractMap<String,Object>
-
clear
public void clear()
-
-