FileDocCategorySizeDatePackage
WebServiceCheckMgrImpl.javaAPI DocGlassfish v2 API5041Fri May 04 22:34:20 BST 2007com.sun.enterprise.tools.verifier.webservices

WebServiceCheckMgrImpl

public class WebServiceCheckMgrImpl extends com.sun.enterprise.tools.verifier.CheckMgr implements com.sun.enterprise.tools.verifier.JarCheck
WebServices harness

Fields Summary
private final String
testsListFileName
name of the file containing the list of tests for the webservice architecture
private final String
sunONETestsListFileName
private String
moduleName
Constructors Summary
public WebServiceCheckMgrImpl(com.sun.enterprise.tools.verifier.FrameworkContext frameworkContext)


       
        this.frameworkContext = frameworkContext;
    
Methods Summary
public voidcheck(Descriptor descriptor)
Check Ejb for spec. conformance

param
descriptor WebServices descriptor

        WebServicesDescriptor rootDescriptor = (WebServicesDescriptor) descriptor;
        ModuleType moduleType = rootDescriptor.getBundleDescriptor()
                .getModuleType();
        if (moduleType == ModuleType.EJB)
            moduleName = Result.EJB;
        else if (moduleType == ModuleType.WAR)
            moduleName = Result.WEB;
        for (Iterator itr = rootDescriptor.getWebServices().iterator();
             itr.hasNext();) {
            WebService wsDescriptor = (WebService) itr.next();  
            // need to pass WebServiceEndpoint's to check
            for (Iterator endPtItr = wsDescriptor.getEndpoints().iterator();
                 endPtItr.hasNext();) {
                super.check((WebServiceEndpoint) endPtItr.next());
            }
        }
    
protected BundleDescriptorgetBundleDescriptor(Descriptor descriptor)

        return ((WebServiceEndpoint) descriptor).getBundleDescriptor();
    
protected com.sun.enterprise.tools.verifier.tests.ComponentNameConstructorgetComponentNameConstructor(Descriptor descriptor)

        return new ComponentNameConstructor((WebServiceEndpoint)descriptor);
    
protected java.lang.StringgetSchemaVersion(Descriptor descriptor)

        return ((WebServiceEndpoint) descriptor).getWebService().
                getWebServicesDescriptor().getSpecVersion();
    
protected java.lang.StringgetSunONETestsListFileName()

return
String filename containing sunone tests

        return sunONETestsListFileName;
    
protected java.lang.StringgetTestsListFileName()
return the configuration file name for the list of tests pertinent to the connector architecture

return
String filename containing the list of tests

        return testsListFileName;
    
protected voidsetModuleName(com.sun.enterprise.tools.verifier.Result r)

        r.setModuleName(moduleName);