java.lang.Object
com.sun.xml.ws.policy.PolicyMapMutator
- Direct Known Subclasses:
EffectivePolicyModifier
,PolicyMapExtender
The class serves as a base for specific policy map mutator implementations. It provides common methods that allow
concrete mutator implementations to connect and disconnect to/from a policy map instance.
- Author:
- Marek Potociar ([email protected])
-
Method Summary
Modifier and TypeMethodDescriptionvoid
The method is used to connect the policy map mutator instance to the map it should mutate.void
Disconnects the mutator from the policy map object it is connected to.getMap()
Can be used to retrieve the policy map currently connected to this mutator.boolean
This method provides connection status information of the policy map mutator instance.
-
Method Details
-
connect
The method is used to connect the policy map mutator instance to the map it should mutate.- Parameters:
map
- the policy map instance that will be mutable by this mutator.- Throws:
IllegalStateException
- in case this mutator object is already connected to a policy map.
-
getMap
Can be used to retrieve the policy map currently connected to this mutator. Will returnnull
if not connected.- Returns:
- policy map currently connected to this mutator. May return
null
if the mutator is not connected. - See Also:
-
disconnect
public void disconnect()Disconnects the mutator from the policy map object it is connected to. Method must be called prior to connecting this mutator instance to another policy map.
This operation is irreversible: you cannot connect the mutator to the same policy map instance once you disconnect from it. Multiple consequent calls of this method will have no effect. -
isConnected
public boolean isConnected()This method provides connection status information of the policy map mutator instance.- Returns:
true
if the mutator instance is connected to a policy map, otherwise returnsfalse
.
-