Methods Summary |
---|
public void | check(com.sun.enterprise.deployment.Descriptor descriptor)Check method introduced for WebServices integration
// run persistence tests first.
checkPersistenceUnits(ApplicationClientDescriptor.class.cast(descriptor));
//An ApplicationClient can have WebService References
checkWebServicesClient(descriptor);
if (frameworkContext.isPartition() &&
!frameworkContext.isAppClient())
return;
// run the ParseDD test
if (getSchemaVersion(descriptor).compareTo("1.4") < 0) { // NOI18N
AppClientDeploymentDescriptorFile ddf = new AppClientDeploymentDescriptorFile();
File file = new File(getAbstractArchiveUri(descriptor),
ddf.getDeploymentDescriptorPath());
FileInputStream is = new FileInputStream(file);
try {
if (is != null) {
Result result = new ParseDD().validateAppClientDescriptor(is);
result.setComponentName(getArchiveUri(descriptor));
setModuleName(result);
frameworkContext.getResultManager().add(result);
}
} 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;
WebServiceClientCheckMgrImpl webServiceClientCheckMgr =
new WebServiceClientCheckMgrImpl(frameworkContext);
ApplicationClientDescriptor desc = (ApplicationClientDescriptor) descriptor;
if (desc.hasWebServiceClients()) {
Set serviceRefDescriptors = desc.getServiceReferenceDescriptors();
Iterator it = serviceRefDescriptors.iterator();
while (it.hasNext()) {
webServiceClientCheckMgr.setVerifierContext(context);
webServiceClientCheckMgr.check(
(ServiceReferenceDescriptor) it.next());
}
} else // set not applicable for all tests in WebServices for this Appclient Bundle
webServiceClientCheckMgr.setVerifierContext(context);
|
protected com.sun.enterprise.tools.verifier.tests.ComponentNameConstructor | getComponentNameConstructor(com.sun.enterprise.deployment.Descriptor descriptor)
return new ComponentNameConstructor((ApplicationClientDescriptor)descriptor);
|
protected java.lang.String | getSchemaVersion(com.sun.enterprise.deployment.Descriptor descriptor)
return ((RootDeploymentDescriptor) descriptor).getSpecVersion();
|
protected java.lang.String | getSunONETestsListFileName()return the configuration file name for the list of tests pertinent to the
application client architecture
return sunONETestsListFileName;
|
protected java.lang.String | getTestsListFileName()return the configuration file name for the list of tests pertinent to the
connector architecture
return testsListFileName;
|
protected void | setModuleName(com.sun.enterprise.tools.verifier.Result r)
r.setModuleName(Result.APPCLIENT);
|