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 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) Deprecated.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
-
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
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.
-
BasePropertySet.asMap()
which produces readwriteMap