com.sun.xml.ws.policy
Class AssertionValidationProcessor

java.lang.Object
  extended by 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
protected AssertionValidationProcessor(Collection<PolicyAssertionValidator> policyValidators)
          This constructor adds the given set of policy validators to the dynamically discovered PolicyAssertionValidators.
 
Method Summary
static AssertionValidationProcessor getInstance()
          Factory method that returns singleton instance of the class.
 PolicyAssertionValidator.Fitness validateClientSide(PolicyAssertion assertion)
          Validates fitness of the assertion on the client side.
 PolicyAssertionValidator.Fitness validateServerSide(PolicyAssertion assertion)
          Validates fitness of the assertion on the server side.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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 the assertion on the client side. return client side assertion 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 the assertion on the server side. return server side assertion fitness

Parameters:
assertion - The assertion to be validated.
Returns:
The fitness of the assertion on the server side.
Throws:
PolicyException - If validation failed.


Copyright © 2005-2015 Oracle Corporation. All Rights Reserved.