Package com.sun.xml.ws.policy
Class AssertionValidationProcessor
- java.lang.Object
-
- com.sun.xml.ws.policy.AssertionValidationProcessor
-
- Direct Known Subclasses:
ValidationProcessor
public class AssertionValidationProcessor extends Object
Provides methods for assertion validation.- Author:
- Marek Potociar (marek.potociar at sun.com), Fabian Ritzmann
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedAssertionValidationProcessor(Collection<PolicyAssertionValidator> policyValidators)This constructor adds the given set of policy validators to the dynamically discovered PolicyAssertionValidators.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static AssertionValidationProcessorgetInstance()Factory method that returns singleton instance of the class.PolicyAssertionValidator.FitnessvalidateClientSide(PolicyAssertion assertion)Validates fitness of theassertionon the client side.PolicyAssertionValidator.FitnessvalidateServerSide(PolicyAssertion assertion)Validates fitness of theassertionon the server side.
-
-
-
Constructor Detail
-
AssertionValidationProcessor
protected AssertionValidationProcessor(Collection<PolicyAssertionValidator> policyValidators) throws PolicyException
This constructor adds the given set of policy validators to the dynamically discovered PolicyAssertionValidators. This constructor is intended to be used by the JAX-WS com.sun.xml.ws.policy.api.ValidationProcessor.- Parameters:
policyValidators- A set of PolicyAssertionValidators. May be null- Throws:
PolicyException- Thrown if the set of given PolicyAssertionValidators and dynamically discovered PolicyAssertionValidators is empty.
-
-
Method Detail
-
getInstance
public static AssertionValidationProcessor getInstance() throws PolicyException
Factory method that returns singleton instance of the class. This method is only intended to be used by code that has no dependencies on JAX-WS. Otherwise use com.sun.xml.ws.api.policy.ValidationProcessor.- Returns:
- singleton An instance of the class.
- Throws:
PolicyException- If instantiation failed.
-
validateClientSide
public PolicyAssertionValidator.Fitness validateClientSide(PolicyAssertion assertion) throws PolicyException
Validates fitness of theassertionon the client side. return client sideassertionfitness- Parameters:
assertion- The assertion to be validated.- Returns:
- The fitness of the assertion on the client side.
- Throws:
PolicyException- If validation failed.
-
validateServerSide
public PolicyAssertionValidator.Fitness validateServerSide(PolicyAssertion assertion) throws PolicyException
Validates fitness of theassertionon the server side. return server sideassertionfitness- Parameters:
assertion- The assertion to be validated.- Returns:
- The fitness of the assertion on the server side.
- Throws:
PolicyException- If validation failed.
-
-