Interface PropertySet
- All Known Subinterfaces:
DistributedPropertySet,MessageContext
- All Known Implementing Classes:
AdditionalResponses,AddressingPropertySet,BaseDistributedPropertySet,BasePropertySet,InboundAccepted,InboundAcceptedImpl,OutboundDelivered,Packet,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 @interfaceMarks a field onPropertySetas a property ofMessageContext. -
Method Summary
Modifier and TypeMethodDescriptionasMap()Creates a modifiableMapview of thisPropertySet.booleancontainsKey(Object key) Gets the name of the property.Sets a property.booleanChecks if thisPropertySetsupports a property of the given name.
-
Method Details
-
containsKey
-
get
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
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 thisPropertySetsupports a property of the given name. -
remove
-
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.
-