|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.xml.ws.addressing.policy.AddressingPolicyValidator
public class AddressingPolicyValidator
This class validates the Addressing assertions. If the assertion is wsam:Addressing, it makes sure that only valid assertions are nested.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface com.sun.xml.ws.policy.spi.PolicyAssertionValidator |
|---|
PolicyAssertionValidator.Fitness |
| Constructor Summary | |
|---|---|
AddressingPolicyValidator()
Creates a new instance of AddressingPolicyValidator |
|
| Method Summary | |
|---|---|
String[] |
declareSupportedDomains()
Each service provider that implements this SPI must make sure to identify all possible domains it supports. |
PolicyAssertionValidator.Fitness |
validateClientSide(PolicyAssertion assertion)
An implementation of this method must return: Fitness.UNKNOWN if the policy assertion type is not recognized
Fitness.SUPPORTED if the policy assertion is supported in the
client-side context
Fitness.UNSUPPORTED if the policy assertion is recognized however
it's content is not supported. |
PolicyAssertionValidator.Fitness |
validateServerSide(PolicyAssertion assertion)
An implementation of this method must return: Fitness.UNKNOWN if the policy assertion type is not recognized
Fitness.SUPPORTED if the policy assertion is supported in the
server-side context
Fitness.UNSUPPORTED if the policy assertion is recognized however
it's content is not supported. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AddressingPolicyValidator()
| Method Detail |
|---|
public PolicyAssertionValidator.Fitness validateClientSide(PolicyAssertion assertion)
PolicyAssertionValidatorFitness.UNKNOWN if the policy assertion type is not recognized
Fitness.SUPPORTED if the policy assertion is supported in the
client-side context
Fitness.UNSUPPORTED if the policy assertion is recognized however
it's content is not supported. For each assetion that will be eventually marked with
this validation value, the policy processor will log a WARNING message however
an attempt to call the web service will be made.
Fitness.INVALID if the policy assertion is recognized however
its content (value, parameters, nested assertions) is invalid. For each assetion
that will be eventually marked with this validation value, the policy processor
will log a SEVERE error and throw an exception. No further attempts to call
the web service will be made.
validateClientSide in interface PolicyAssertionValidatorassertion - A policy asssertion (See PolicyAssertion).
May contain nested policies and assertions.
assertion on in the client-side context. Must not be null.public PolicyAssertionValidator.Fitness validateServerSide(PolicyAssertion assertion)
PolicyAssertionValidatorFitness.UNKNOWN if the policy assertion type is not recognized
Fitness.SUPPORTED if the policy assertion is supported in the
server-side context
Fitness.UNSUPPORTED if the policy assertion is recognized however
it's content is not supported.
Fitness.INVALID if the policy assertion is recognized however
its content (value, parameters, nested assertions) is invalid.
validateServerSide in interface PolicyAssertionValidatorassertion - A policy asssertion (See PolicyAssertion).
May contain nested policies and assertions.
assertion on in the server-side context. Must not be null.public String[] declareSupportedDomains()
PolicyAssertionValidatorPolicyAssertionValidators to support the same domain. In such case,
the most significant result returned from validation methods will be eventually assigned to the assertion.
The significance of validation results is as follows (from most to least significant):
declareSupportedDomains in interface PolicyAssertionValidatorString array holding String representations of identifiers of all supported domains.
Usually a domain identifier is represented by a namespace.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||