Package com.sun.xml.ws.policy
Class PolicyMapUtil
- java.lang.Object
-
- com.sun.xml.ws.policy.PolicyMapUtil
-
public class PolicyMapUtil extends Object
Utility methods that operate on a PolicyMap.- Author:
- Fabian Ritzmann
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidinsertPolicies(PolicyMap policyMap, Collection<PolicySubject> policySubjects, QName serviceName, QName portName)Inserts all PolicySubjects of type WsdlBindingSubject into the given policy map.static voidrejectAlternatives(PolicyMap map)Throw an exception if the policy map contains any policy with at least two policy alternatives.
-
-
-
Method Detail
-
rejectAlternatives
public static void rejectAlternatives(PolicyMap map) throws PolicyException
Throw an exception if the policy map contains any policy with at least two policy alternatives. Optional assertions are not considered (unless they have been normalized into two policy alternatives).- Parameters:
map- policy map to be processed- Throws:
PolicyException- Thrown if the policy map contains at least one policy with more than one policy alternative
-
insertPolicies
public static void insertPolicies(PolicyMap policyMap, Collection<PolicySubject> policySubjects, QName serviceName, QName portName) throws PolicyException
Inserts all PolicySubjects of type WsdlBindingSubject into the given policy map.- Parameters:
policyMap- The policy mappolicySubjects- The policy subjects. The actual subject must have the type WsdlBindingSubject, otherwise it will not be processed.serviceName- The name of the current WSDL serviceportName- The name of the current WSDL port- Throws:
PolicyException- Thrown if the effective policy of a policy subject could not be computed
-
-