- All Known Subinterfaces:
DistributedPropertySet
,MessageContext
- All Known Implementing Classes:
AddressingPropertySet
,BaseDistributedPropertySet
,BasePropertySet
,Packet
,RequestContext
,ServletConnectionImpl
,ThrowableContainerPropertySet
,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 ClassesModifier and TypeInterfaceDescriptionstatic @interface
Marks a field onPropertySet
as a property ofMessageContext
. -
Method Summary
Modifier and TypeMethodDescriptionasMap()
Creates a modifiableMap
view of thisPropertySet
.boolean
containsKey
(Object key) Gets the name of the property.Sets a property.boolean
Checks if thisPropertySet
supports a property of the given name.
-
Method Details
-
containsKey
-
get
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
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:
-
supports
Checks if thisPropertySet
supports a property of the given name. -
remove
-
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.
-