java.lang.Object
com.sun.xml.ws.policy.AssertionValidationProcessor
- Direct Known Subclasses:
ValidationProcessor
Provides methods for assertion validation.
- Author:
- Marek Potociar, Fabian Ritzmann
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
AssertionValidationProcessor
(Collection<PolicyAssertionValidator> policyValidators) This constructor adds the given set of policy validators to the dynamically discovered PolicyAssertionValidators. -
Method Summary
Modifier and TypeMethodDescriptionstatic AssertionValidationProcessor
Factory method that returns singleton instance of the class.validateClientSide
(PolicyAssertion assertion) Validates fitness of theassertion
on the client side.validateServerSide
(PolicyAssertion assertion) Validates fitness of theassertion
on 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 theassertion
on the client side. return client sideassertion
fitness- 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 theassertion
on the server side. return server sideassertion
fitness- Parameters:
assertion
- The assertion to be validated.- Returns:
- The fitness of the assertion on the server side.
- Throws:
PolicyException
- If validation failed.
-