Package com.sun.xml.ws.policy
Class AssertionValidationProcessor
java.lang.Object
com.sun.xml.ws.policy.AssertionValidationProcessor
- Direct Known Subclasses:
ValidationProcessor
Provides methods for assertion validation.
- Author:
- Marek Potociar (marek.potociar at sun.com), Fabian Ritzmann
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAssertionValidationProcessor(Collection<PolicyAssertionValidator> policyValidators) This constructor adds the given set of policy validators to the dynamically discovered PolicyAssertionValidators. -
Method Summary
Modifier and TypeMethodDescriptionstatic AssertionValidationProcessorFactory method that returns singleton instance of the class.validateClientSide(PolicyAssertion assertion) Validates fitness of theassertionon the client side.validateServerSide(PolicyAssertion assertion) Validates fitness of theassertionon the server side.
-
Constructor Details
-
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 Details
-
getInstance
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.
-