Interface PropertySet
-
- All Known Subinterfaces:
DistributedPropertySet,MessageContext
- All Known Implementing Classes:
AdditionalResponses,AddressingPropertySet,BaseDistributedPropertySet,BasePropertySet,DistributedPropertySet,InboundAccepted,InboundAcceptedImpl,OutboundDelivered,Packet,PropertySet,RequestContext,ServletConnectionImpl,TCPClientTransport,TCPServiceChannelWSAdapter.ServiceChannelWSSatellite,ThrowableContainerPropertySet,TransactionPropertySet,WsaPropertyBag,WSDLDirectProperties,WSDLPortProperties,WSDLProperties,WSHTTPConnection,XMLPropertyBag
public interface PropertySetA set of "properties" that can be accessed via strongly-typed fields as well as reflexibly through the property name.- Author:
- Kohsuke Kawaguchi
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfacePropertySet.PropertyMarks a field onPropertySetas a property ofMessageContext.
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description Map<String,Object>asMap()Creates a modifiableMapview of thisPropertySet.booleancontainsKey(Object key)Map<String,Object>createMapView()Deprecated.use newer implementationBasePropertySet.asMap()which produces readwriteMapObjectget(Object key)Gets the name of the property.Objectput(String key, Object value)Sets a property.Objectremove(Object key)booleansupports(Object key)Checks if thisPropertySetsupports a property of the given name.
-
-
-
Method Detail
-
containsKey
boolean containsKey(Object key)
-
get
Object get(Object key)
Gets the name of the property.- Parameters:
key- This field is typed asObjectto follow theMap.get(Object)convention, but if anything butStringis passed, this method just returns null.
-
put
Object put(String key, Object value)
Sets a property.Implementation Note This method is slow. Code inside JAX-WS should define strongly-typed fields in this class and access them directly, instead of using this.
- See Also:
PropertySet.Property
-
supports
boolean supports(Object key)
Checks if thisPropertySetsupports a property of the given name.
-
createMapView
@Deprecated Map<String,Object> createMapView()
Deprecated.use newer implementationBasePropertySet.asMap()which produces readwriteMapCreates aMapview of thisPropertySet.This map is partially live, in the sense that values you set to it will be reflected to
PropertySet.However, this map may not pick up changes made to
PropertySetafter the view is created.- Returns:
- always non-null valid instance.
-
asMap
Map<String,Object> asMap()
Creates a modifiableMapview of thisPropertySet.
Changes done on thisMapor onPropertySetobject work in both directions - values made toMapare reflected toPropertySetand changes done using getters/setters onPropertySetobject are automatically reflected in thisMap.
If necessary, it also can hold other values (not present onPropertySet) - seeBasePropertySet.mapAllowsAdditionalProperties()- Returns:
- always non-null valid instance.
-
-