java.lang.Object
com.sun.xml.ws.policy.PolicyIntersector
The instance of this class is intended to provide policy intersection mechanism.
- Author:
- Marek Potociar ([email protected])
-
Method Summary
Modifier and TypeMethodDescriptionstatic PolicyIntersector
Returns a strict policy intersector that can be used to intersect group of policies.static PolicyIntersector
Returns a strict policy intersector that can be used to intersect group of policies.Performs intersection on the input collection of policies and returns the resulting (intersected) policy.
-
Method Details
-
createStrictPolicyIntersector
Returns a strict policy intersector that can be used to intersect group of policies.- Returns:
- policy intersector instance.
-
createLaxPolicyIntersector
Returns a strict policy intersector that can be used to intersect group of policies.- Returns:
- policy intersector instance.
-
intersect
Performs intersection on the input collection of policies and returns the resulting (intersected) policy. If input policy collection contains only a single policy instance, no intersection is performed and the instance is directly returned as a method call result.- Parameters:
policies
- collection of policies to be intersected. Must not benull
nor empty, otherwise exception is thrown.- Returns:
- intersected policy as a result of perfromed policy intersection. A
null
value is never returned. - Throws:
IllegalArgumentException
- in casepolicies
argument is eithernull
or empty collection.
-