Package com.sun.xml.ws.policy
Class PolicyIntersector
- java.lang.Object
-
- com.sun.xml.ws.policy.PolicyIntersector
-
public final class PolicyIntersector extends Object
The instance of this class is intended to provide policy intersection mechanism.- Author:
- Marek Potociar (marek.potociar@sun.com)
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static PolicyIntersectorcreateLaxPolicyIntersector()Returns a strict policy intersector that can be used to intersect group of policies.static PolicyIntersectorcreateStrictPolicyIntersector()Returns a strict policy intersector that can be used to intersect group of policies.Policyintersect(Policy... policies)Performs intersection on the input collection of policies and returns the resulting (intersected) policy.
-
-
-
Method Detail
-
createStrictPolicyIntersector
public static PolicyIntersector createStrictPolicyIntersector()
Returns a strict policy intersector that can be used to intersect group of policies.- Returns:
- policy intersector instance.
-
createLaxPolicyIntersector
public static PolicyIntersector createLaxPolicyIntersector()
Returns a strict policy intersector that can be used to intersect group of policies.- Returns:
- policy intersector instance.
-
intersect
public Policy intersect(Policy... policies)
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 benullnor empty, otherwise exception is thrown.- Returns:
- intersected policy as a result of perfromed policy intersection. A
nullvalue is never returned. - Throws:
IllegalArgumentException- in casepoliciesargument is eithernullor empty collection.
-
-