Package com.sun.enterprise.tools.common.dd

Examples of com.sun.enterprise.tools.common.dd.WebserviceEndpoint


            // all end points for this servlet
            WebserviceEndpoint[] webSvcEps = sLet.getWebserviceEndpoint();

            for ( int wsCnt = 0; wsCnt < webSvcEps.length; wsCnt++) {
                WebserviceEndpoint webSvc = webSvcEps[wsCnt];

                // context root for web service endpoint
                String ctxRoot = sunWebApp.getContextRoot();
                String uriInConfig = getUriInDomainConfig(appId);
                if (uriInConfig != null) {
                    ctxRoot = uriInConfig;
                }
                String uri;
                String wsUri =  webSvc.getEndpointAddressUri();
                if ((wsUri != null) && (wsUri.length() > 0)
                                    && (wsUri.charAt(0) != '/')) {
                    wsUri = "/" + wsUri;   
                }

                // FIXME: Do we need to read domain.xml stand alone module?
                if (ctxRoot != null) {
                    uri = ctxRoot + wsUri;
                } else {
                    uri = wsUri;
                }

                boolean isSec = false;
                String trans = webSvc.getTransportGuarantee();
                if (( trans != null) && ("NONE".equals(trans) == false)) {
                    isSec = true;
                } else if ((webSvc.getLoginConfig() != null) ||
                    (webSvc.getMessageSecurityBinding() != null)) {
                    isSec = true;
                }
                // web service uri, endpoint name and servlet impl class
                WebServiceDescrInfo wsdInfo =
                    new WebServiceDescrInfo(webSvc.getPortComponentName(),
                                       uri, webSvc.getServletImplClass(),isSec);

                wsMap.put(wsdInfo.getName(),wsdInfo);
            }
       }
View Full Code Here


            // all web service endpoints for this ejb
            WebserviceEndpoint[] webSvcEps = ejb.getWebserviceEndpoint();

            for ( int wsCnt = 0; wsCnt < webSvcEps.length; wsCnt++) {
                WebserviceEndpoint webSvc = webSvcEps[wsCnt];

                boolean isSec = false;
                String trans = webSvc.getTransportGuarantee();
                if (( trans != null) && ("NONE".equals(trans) == false)) {
                    isSec = true;
                } else if ((webSvc.getLoginConfig() != null) ||
                    (webSvc.getMessageSecurityBinding() != null)) {
                    isSec = true;
                }
                // uri
                WebServiceDescrInfo wsdInfo = new
                    WebServiceDescrInfo(webSvc.getPortComponentName(),
                        webSvc.getEndpointAddressUri(),
                        webSvc.getTieClass(), isSec);

                wsMap.put(wsdInfo.getName(),wsdInfo);
            }
        }
View Full Code Here

    // Validating property principalName
    if (getPrincipalName() != null) {
    }
    // Validating property webserviceEndpoint
    for (int _index = 0; _index < sizeWebserviceEndpoint(); ++_index) {
      WebserviceEndpoint element = getWebserviceEndpoint(_index);
      if (element != null) {
        element.validate();
      }
    }
  }
View Full Code Here

    if (getMdbResourceAdapter() != null) {
      getMdbResourceAdapter().validate();
    }
    // Validating property webserviceEndpoint
    for (int _index = 0; _index < sizeWebserviceEndpoint(); ++_index) {
      WebserviceEndpoint element = getWebserviceEndpoint(_index);
      if (element != null) {
        element.validate();
      }
    }
    // Validating property flushAtEndOfMethod
    if (getFlushAtEndOfMethod() != null) {
      getFlushAtEndOfMethod().validate();
View Full Code Here

TOP

Related Classes of com.sun.enterprise.tools.common.dd.WebserviceEndpoint

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.