FileDocCategorySizeDatePackage
TCPTransportPolicyValidator.javaAPI DocExample3861Tue May 29 16:57:16 BST 2007com.sun.xml.ws.transport.tcp.wsit

TCPTransportPolicyValidator

public final class TCPTransportPolicyValidator extends Object implements com.sun.xml.ws.policy.spi.PolicyAssertionValidator
author
Marek Potociar (marek.potociar at sun.com)

Fields Summary
private static final ArrayList
clientSupportedAssertions
private static final ArrayList
commonSupportedAssertions
Constructors Summary
public TCPTransportPolicyValidator()
Creates a new instance of TCPTransportPolicyValidator

    
     
        clientSupportedAssertions.add(SELECT_OPTIMAL_TRANSPORT_ASSERTION);
        commonSupportedAssertions.add(TCPTRANSPORT_POLICY_ASSERTION);
        commonSupportedAssertions.add(TCPTRANSPORT_CONNECTION_MANAGEMENT_ASSERTION);
    
    
Methods Summary
public java.lang.String[]declareSupportedDomains()

        return new String[] {TCPTRANSPORT_POLICY_NAMESPACE_URI,
        CLIENT_TRANSPORT_NS, TCPTRANSPORT_CONNECTION_MANAGEMENT_NAMESPACE_URI};
    
public com.sun.xml.ws.policy.spi.PolicyAssertionValidator.FitnessvalidateClientSide(com.sun.xml.ws.policy.PolicyAssertion assertion)

        return clientSupportedAssertions.contains(assertion.getName()) ||
                commonSupportedAssertions.contains(assertion.getName()) ? Fitness.SUPPORTED : Fitness.UNKNOWN;
    
public com.sun.xml.ws.policy.spi.PolicyAssertionValidator.FitnessvalidateServerSide(com.sun.xml.ws.policy.PolicyAssertion assertion)

        final QName assertionName = assertion.getName();
        return commonSupportedAssertions.contains(assertion.getName()) ? Fitness.SUPPORTED : Fitness.UNKNOWN;