FileDocCategorySizeDatePackage
RMPolicyValidator.javaAPI DocExample4274Tue Jun 12 15:42:42 BST 2007com.sun.xml.ws.rm.jaxws.util

RMPolicyValidator

public class RMPolicyValidator extends Object implements com.sun.xml.ws.policy.spi.PolicyAssertionValidator

Fields Summary
private static final ArrayList
serverSideSupportedAssertions
private static final ArrayList
clientSideSupportedAssertions
Constructors Summary
public RMPolicyValidator()


     
        serverSideSupportedAssertions.add(new QName(version, "RMAssertion"));
        serverSideSupportedAssertions.add(new QName(sunVersion, "Ordered"));
        serverSideSupportedAssertions.add(new QName(sunVersion, "AllowDuplicates"));
        serverSideSupportedAssertions.add(new QName(microsoftVersion, "RmFlowControl"));

        clientSideSupportedAssertions.add(new QName(sunClientVersion, "AckRequestInterval"));
        clientSideSupportedAssertions.add(new QName(sunClientVersion, "ResendInterval"));
	clientSideSupportedAssertions.add(new QName(sunClientVersion, "CloseTimeout"));        
        clientSideSupportedAssertions.addAll(serverSideSupportedAssertions);
    
    
Methods Summary
public java.lang.String[]declareSupportedDomains()

        return new String[] {version, microsoftVersion, sunVersion, sunClientVersion};
    
public com.sun.xml.ws.policy.spi.PolicyAssertionValidator.FitnessvalidateClientSide(com.sun.xml.ws.policy.PolicyAssertion assertion)

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

        QName assertionName = assertion.getName();
        if (serverSideSupportedAssertions.contains(assertionName)) {
            return Fitness.SUPPORTED;
        } else if (clientSideSupportedAssertions.contains(assertionName)) {
            return Fitness.UNSUPPORTED;
        } else {
            return Fitness.UNKNOWN;                    
        }