FileDocCategorySizeDatePackage
ConnectorURI.javaAPI DocGlassfish v2 API4128Fri May 04 22:33:28 BST 2007com.sun.enterprise.tools.verifier.tests.app

ConnectorURI

public class ConnectorURI extends com.sun.enterprise.tools.verifier.tests.app.ApplicationTest implements AppCheck
The connector element specifies the URI of a connector module, relative to the top level of the application package.

Fields Summary
Constructors Summary
Methods Summary
public com.sun.enterprise.tools.verifier.Resultcheck(com.sun.enterprise.deployment.Application descriptor)
The connector element specifies the URI of a connector module, relative to the top level of the application package.

param
descriptor the Application deployment descriptor
return
Result the results for this assertion

        ComponentNameConstructor compName = getVerifierContext().getComponentNameConstructor();
        Result result = getInitializedResult();
        
        for (Iterator itr = descriptor.getRarDescriptors().iterator(); itr.hasNext();) {
            ConnectorDescriptor cond = (ConnectorDescriptor) itr.next();
            
            if (!cond.getModuleDescriptor().getArchiveUri().endsWith(".rar")) {
                addErrorDetails(result, compName);
                result.failed
                        (smh.getLocalString
                        (getClass().getName() + ".failed",
                        "Error: [ {0} ] does not specify the URI [ {1} ] of a Connector module, relative to the top level of the application package [ {2} ], or does not end with \".rar\"",
                        new Object[] {cond.getName(), cond.getModuleDescriptor().getArchiveUri(), descriptor.getName()}));
            }
        }
        if(result.getStatus() != Result.FAILED) {
            addGoodDetails(result, compName);
            result.passed
                    (smh.getLocalString
                    (getClass().getName() + ".passed",
                    "All the Connector URIs are valid."));
        }
        
        return result;