Package com.sun.xml.ws.policy
Class EffectivePolicyModifier
java.lang.Object
com.sun.xml.ws.policy.PolicyMapMutator
com.sun.xml.ws.policy.EffectivePolicyModifier
The class serves as a policy map mutator that allows for replacement of current effective policies
stored in the policy map with new effective policy provided by the mutator user.
- Author:
- Marek Potociar (marek.potociar@sun.com)
-
Method Summary
Modifier and TypeMethodDescriptionstatic EffectivePolicyModifiervoidsetNewEffectivePolicyForEndpointScope(PolicyMapKey key, Policy newEffectivePolicy) Replaces current effective policy on the endpoint scope (identified by akeyparameter) with the new efective policy provided as a second input parameter.voidsetNewEffectivePolicyForFaultMessageScope(PolicyMapKey key, Policy newEffectivePolicy) Replaces current effective policy on the fault message scope (identified by akeyparameter) with the new efective policy provided as a second input parameter.voidsetNewEffectivePolicyForInputMessageScope(PolicyMapKey key, Policy newEffectivePolicy) Replaces current effective policy on the input message scope (identified by akeyparameter) with the new efective policy provided as a second input parameter.voidsetNewEffectivePolicyForOperationScope(PolicyMapKey key, Policy newEffectivePolicy) Replaces current effective policy on the operation scope (identified by akeyparameter) with the new efective policy provided as a second input parameter.voidsetNewEffectivePolicyForOutputMessageScope(PolicyMapKey key, Policy newEffectivePolicy) Replaces current effective policy on the output message scope (identified by akeyparameter) with the new efective policy provided as a second input parameter.voidsetNewEffectivePolicyForServiceScope(PolicyMapKey key, Policy newEffectivePolicy) Replaces current effective policy on the service scope (identified by akeyparameter) with the new efective policy provided as a second input parameter.Methods inherited from class com.sun.xml.ws.policy.PolicyMapMutator
connect, disconnect, getMap, isConnected
-
Method Details
-
createEffectivePolicyModifier
-
setNewEffectivePolicyForServiceScope
Replaces current effective policy on the service scope (identified by akeyparameter) with the new efective policy provided as a second input parameter. If no policy was defined for the presented key, the new policy is simply stored with the key.- Parameters:
key- identifier of the scope the effective policy should be replaced with the new one. Must not benull.newEffectivePolicy- the new policy to replace the old effective policy of the scope. Must not benull.- Throws:
IllegalArgumentException- in case any of the input parameters isnull
-
setNewEffectivePolicyForEndpointScope
Replaces current effective policy on the endpoint scope (identified by akeyparameter) with the new efective policy provided as a second input parameter.- Parameters:
key- identifier of the scope the effective policy should be replaced with the new one. Must not benull.newEffectivePolicy- the new policy to replace the old effective policy of the scope. Must not benull.- Throws:
IllegalArgumentException- in case any of the input parameters isnull
-
setNewEffectivePolicyForOperationScope
Replaces current effective policy on the operation scope (identified by akeyparameter) with the new efective policy provided as a second input parameter. If no policy was defined for the presented key, the new policy is simply stored with the key.- Parameters:
key- identifier of the scope the effective policy should be replaced with the new one. Must not benull.newEffectivePolicy- the new policy to replace the old effective policy of the scope. Must not benull.- Throws:
IllegalArgumentException- in case any of the input parameters isnull
-
setNewEffectivePolicyForInputMessageScope
Replaces current effective policy on the input message scope (identified by akeyparameter) with the new efective policy provided as a second input parameter. If no policy was defined for the presented key, the new policy is simply stored with the key.- Parameters:
key- identifier of the scope the effective policy should be replaced with the new one. Must not benull.newEffectivePolicy- the new policy to replace the old effective policy of the scope. Must not benull.- Throws:
IllegalArgumentException- in case any of the input parameters isnull
-
setNewEffectivePolicyForOutputMessageScope
Replaces current effective policy on the output message scope (identified by akeyparameter) with the new efective policy provided as a second input parameter. If no policy was defined for the presented key, the new policy is simply stored with the key.- Parameters:
key- identifier of the scope the effective policy should be replaced with the new one. Must not benull.newEffectivePolicy- the new policy to replace the old effective policy of the scope. Must not benull.- Throws:
IllegalArgumentException- in case any of the input parameters isnull
-
setNewEffectivePolicyForFaultMessageScope
Replaces current effective policy on the fault message scope (identified by akeyparameter) with the new efective policy provided as a second input parameter. If no policy was defined for the presented key, the new policy is simply stored with the key.- Parameters:
key- identifier of the scope the effective policy should be replaced with the new one. Must not benull.newEffectivePolicy- the new policy to replace the old effective policy of the scope. Must not benull.- Throws:
IllegalArgumentException- in case any of the input parameters isnull
-