Methods Summary |
---|
public void | check(com.sun.enterprise.deployment.Descriptor descriptor)Check method introduced for WebServices integration
// run persistence tests first.
checkPersistenceUnits(WebBundleDescriptor.class.cast(descriptor));
// a WebBundleDescriptor can have an WebServicesDescriptor
checkWebServices(descriptor);
// a WebBundleDescriptor can have WebService References
checkWebServicesClient(descriptor);
if (frameworkContext.isPartition() &&
!frameworkContext.isWeb())
return;
createTaglibDescriptors(descriptor); //create document obj for all tld's defined in the war
createFacesConfigDescriptor(descriptor);
// run the ParseDD test
if (getSchemaVersion(descriptor).compareTo("2.4") < 0) { // NOI18N
WebDeploymentDescriptorFile ddf = new WebDeploymentDescriptorFile();
File file = new File(getAbstractArchiveUri(descriptor),
ddf.getDeploymentDescriptorPath());
FileInputStream is = new FileInputStream(file);
try {
if (is != null) {
Result result = new ParseDD().validateWebDescriptor(is);
result.setComponentName(getArchiveUri(descriptor));
setModuleName(result);
frameworkContext.getResultManager().add(result);
is.close();
}
} finally {
try {
if(is!=null)
is.close();
} catch(Exception e) {}
}
}
super.check(descriptor);
|
protected void | checkWebServicesClient(com.sun.enterprise.deployment.Descriptor descriptor)
if (frameworkContext.isPartition() &&
!frameworkContext.isWebServicesClient())
return;
WebBundleDescriptor desc = (WebBundleDescriptor) descriptor;
WebServiceClientCheckMgrImpl webServiceClientCheckMgr = new WebServiceClientCheckMgrImpl(
frameworkContext);
if (desc.hasWebServiceClients()) {
Set serviceRefDescriptors = desc.getServiceReferenceDescriptors();
Iterator it = serviceRefDescriptors.iterator();
while (it.hasNext()) {
webServiceClientCheckMgr.setVerifierContext(context);
webServiceClientCheckMgr.check(
(ServiceReferenceDescriptor) it.next());
}
}
|
protected void | createFacesConfigDescriptor(com.sun.enterprise.deployment.Descriptor descriptor)Create FacesConfigDescriptor
FacesConfigDescriptor d = new FacesConfigDescriptor(context, (WebBundleDescriptor)descriptor);
context.setFacesConfigDescriptor(d);
|
protected void | createTaglibDescriptors(com.sun.enterprise.deployment.Descriptor descriptor)Create array of TagLibDescriptors for all the jsp tag lib files defined
in the war. Set the array in the verifier Context
TagLibFactory tlf = new TagLibFactory(context, frameworkContext);
tlds = tlf.getTagLibDescriptors((WebBundleDescriptor) descriptor);
if (tlds != null) {
context.setTagLibDescriptors(tlds);
setVerifierContext(context);
}
|
protected com.sun.enterprise.tools.verifier.tests.ComponentNameConstructor | getComponentNameConstructor(com.sun.enterprise.deployment.Descriptor descriptor)
return new ComponentNameConstructor((WebBundleDescriptor)descriptor);
|
protected java.lang.String | getSchemaVersion(com.sun.enterprise.deployment.Descriptor descriptor)
return ((WebBundleDescriptor) descriptor).getSpecVersion();
|
protected java.lang.String | getSunONETestsListFileName()
return sunONETestsListFileName;
|
protected java.util.Vector | getTestFromExcludeList()If the call is from deployment backend and precompilejsp option is set
then there is no need to run the AllJSPsMustBeCompilable test.
Vector<TestInformation> tests = super.getTestFromExcludeList();
if(frameworkContext.getJspOutDir() !=null) { // pre-compile jsp flag set
TestInformation ti = new TestInformation();
ti.setClassName("com.sun.enterprise.tools.verifier.tests.web.AllJSPsMustBeCompilable"); // NOI18N
tests.addElement(ti);
}
return tests;
|
protected java.lang.String | getTestsListFileName()
return the configuration file name for the list of tests pertinent to the
web app space (jsp and servlet)
return testsListFileName;
|
protected void | setModuleName(Result r)
r.setModuleName(Result.WEB);
|