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 PropertySet
A 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 interface
PropertySet.Property
Marks a field onPropertySet
as a property ofMessageContext
.
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description Map<String,Object>
asMap()
Creates a modifiableMap
view of thisPropertySet
.boolean
containsKey(Object key)
Map<String,Object>
createMapView()
Deprecated.use newer implementationBasePropertySet.asMap()
which produces readwriteMap
Object
get(Object key)
Gets the name of the property.Object
put(String key, Object value)
Sets a property.Object
remove(Object key)
boolean
supports(Object key)
Checks if thisPropertySet
supports 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 asObject
to follow theMap.get(Object)
convention, but if anything butString
is 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 thisPropertySet
supports a property of the given name.
-
createMapView
@Deprecated Map<String,Object> createMapView()
Deprecated.use newer implementationBasePropertySet.asMap()
which produces readwriteMap
Creates aMap
view 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
PropertySet
after the view is created.- Returns:
- always non-null valid instance.
-
asMap
Map<String,Object> asMap()
Creates a modifiableMap
view of thisPropertySet
.
Changes done on thisMap
or onPropertySet
object work in both directions - values made toMap
are reflected toPropertySet
and changes done using getters/setters onPropertySet
object are automatically reflected in thisMap
.
If necessary, it also can hold other values (not present onPropertySet
) - seeBasePropertySet.mapAllowsAdditionalProperties()
- Returns:
- always non-null valid instance.
-
-