Search in sources :

Example 1 with WebServiceClientCheckMgrImpl

use of com.sun.enterprise.tools.verifier.wsclient.WebServiceClientCheckMgrImpl in project Payara by payara.

the class WebCheckMgrImpl method checkWebServicesClient.

protected void checkWebServicesClient(Descriptor descriptor) throws Exception {
    if (verifierFrameworkContext.isPartition() && !verifierFrameworkContext.isWebServicesClient())
        return;
    WebBundleDescriptor desc = (WebBundleDescriptor) descriptor;
    WebServiceClientCheckMgrImpl webServiceClientCheckMgr = new WebServiceClientCheckMgrImpl(verifierFrameworkContext);
    if (desc.hasWebServiceClients()) {
        Set serviceRefDescriptors = desc.getServiceReferenceDescriptors();
        Iterator it = serviceRefDescriptors.iterator();
        while (it.hasNext()) {
            webServiceClientCheckMgr.setVerifierContext(context);
            webServiceClientCheckMgr.check((ServiceReferenceDescriptor) it.next());
        }
    }
}
Also used : WebServiceClientCheckMgrImpl(com.sun.enterprise.tools.verifier.wsclient.WebServiceClientCheckMgrImpl) Set(java.util.Set) WebBundleDescriptor(com.sun.enterprise.deployment.WebBundleDescriptor) Iterator(java.util.Iterator)

Example 2 with WebServiceClientCheckMgrImpl

use of com.sun.enterprise.tools.verifier.wsclient.WebServiceClientCheckMgrImpl in project Payara by payara.

the class AppClientCheckMgrImpl method checkWebServicesClient.

protected void checkWebServicesClient(Descriptor descriptor) throws Exception {
    if (verifierFrameworkContext.isPartition() && !verifierFrameworkContext.isWebServicesClient())
        return;
    WebServiceClientCheckMgrImpl webServiceClientCheckMgr = new WebServiceClientCheckMgrImpl(verifierFrameworkContext);
    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);
}
Also used : WebServiceClientCheckMgrImpl(com.sun.enterprise.tools.verifier.wsclient.WebServiceClientCheckMgrImpl) Set(java.util.Set) Iterator(java.util.Iterator) ApplicationClientDescriptor(com.sun.enterprise.deployment.ApplicationClientDescriptor)

Example 3 with WebServiceClientCheckMgrImpl

use of com.sun.enterprise.tools.verifier.wsclient.WebServiceClientCheckMgrImpl in project Payara by payara.

the class EjbCheckMgrImpl method checkWebServicesClient.

protected void checkWebServicesClient(Descriptor descriptor) throws Exception {
    if (verifierFrameworkContext.isPartition() && !verifierFrameworkContext.isWebServicesClient())
        return;
    EjbBundleDescriptorImpl desc = (EjbBundleDescriptorImpl) descriptor;
    WebServiceClientCheckMgrImpl webServiceClientCheckMgr = new WebServiceClientCheckMgrImpl(verifierFrameworkContext);
    if (desc.hasWebServiceClients()) {
        Set ejbdescs = desc.getEjbs();
        Iterator ejbIt = ejbdescs.iterator();
        while (ejbIt.hasNext()) {
            EjbDescriptor ejbDesc = (EjbDescriptor) ejbIt.next();
            context.setEjbDescriptorForServiceRef(ejbDesc);
            Set serviceRefDescriptors = ejbDesc.getServiceReferenceDescriptors();
            Iterator it = serviceRefDescriptors.iterator();
            while (it.hasNext()) {
                webServiceClientCheckMgr.setVerifierContext(context);
                webServiceClientCheckMgr.check((ServiceReferenceDescriptor) it.next());
            }
        }
        context.setEjbDescriptorForServiceRef(null);
    }
}
Also used : WebServiceClientCheckMgrImpl(com.sun.enterprise.tools.verifier.wsclient.WebServiceClientCheckMgrImpl) Set(java.util.Set) Iterator(java.util.Iterator) EjbDescriptor(org.glassfish.ejb.deployment.descriptor.EjbDescriptor) EjbBundleDescriptorImpl(org.glassfish.ejb.deployment.descriptor.EjbBundleDescriptorImpl)

Aggregations

WebServiceClientCheckMgrImpl (com.sun.enterprise.tools.verifier.wsclient.WebServiceClientCheckMgrImpl)3 Iterator (java.util.Iterator)3 Set (java.util.Set)3 ApplicationClientDescriptor (com.sun.enterprise.deployment.ApplicationClientDescriptor)1 WebBundleDescriptor (com.sun.enterprise.deployment.WebBundleDescriptor)1 EjbBundleDescriptorImpl (org.glassfish.ejb.deployment.descriptor.EjbBundleDescriptorImpl)1 EjbDescriptor (org.glassfish.ejb.deployment.descriptor.EjbDescriptor)1