Examples of WebServiceEndpointInfo


Examples of com.sun.appserv.management.ext.wsmgmt.WebServiceEndpointInfo

            @HandlerInput(name="WebServiceKey",type=Object.class, required=true)},
        output={
            @HandlerOutput(name="DisableTest", type=Boolean.class)})
    public static void disableTest(HandlerContext handlerCtx) {
        Object webServiceKey = (Object)handlerCtx.getInputValue("WebServiceKey");
        WebServiceEndpointInfo wsInfo = AMXUtil.getWebServiceEndpointInfo(webServiceKey);
        boolean disableTest = false;
        if (wsInfo.isSecure()) {
            disableTest = true;
        } else {
            Enabled app = null;
            if (!wsInfo.isAppStandaloneModule()) {
                app = AMXUtil.getDomainConfig().getJ2EEApplicationConfigMap().get(wsInfo.getAppID());
            } else {
                if (wsInfo.getServiceImplType().equals(WebServiceEndpointInfo.SERVLET_IMPL)) {
                    app = AMXUtil.getDomainConfig().getWebModuleConfigMap().get(wsInfo.getAppID());
                    // this could be an extension module too
                    if(app == null) {
                        app = AMXUtil.getDomainConfig().getExtensionModuleConfigMap().get(wsInfo.getAppID());
                    }
                } else {
                    app = AMXUtil.getDomainConfig().getEJBModuleConfigMap().get(wsInfo.getAppID());
                }
            }
            String status = TargetUtil.getEnabledStatus(app, true);
            if (AMXUtil.supportCluster()){
                if (!status.equals(GuiUtil.getMessage("deploy.allEnabled"))) {
View Full Code Here

Examples of com.sun.appserv.management.ext.wsmgmt.WebServiceEndpointInfo

    public static void getWebServicesData(HandlerContext handlerCtx) {
        Map<Object, String> wsKeyMap = getWSKeys();
        List dataList = new ArrayList();
        for (Iterator iter = wsKeyMap.keySet().iterator(); iter.hasNext();) {
            Object wsKey = iter.next();
            WebServiceEndpointInfo wsInfo = AMXUtil.getWebServiceEndpointInfo(wsKey);
            Map wsInfoMap = wsInfo.asMap();
           
            String wsdlFileName = (new File((String)wsInfoMap.get(
                WebServiceEndpointInfo.WSDL_FILE_LOCATION_KEY))).getName();
            wsInfoMap.put("WSDLFileName", wsdlFileName);
           
            String wsKeyEncoded = (String)wsKey;
            try {
                wsKeyEncoded = URLEncoder.encode(wsKeyEncoded, "UTF-8");
            } catch (UnsupportedEncodingException uee) {
                LogUtil.severe("Error encoding " + wsKey, uee);
                wsKeyEncoded = URLEncoder.encode(wsKeyEncoded);
            }
            wsInfoMap.put("WebServiceKeyEncoded", wsKeyEncoded);

            String port = ApplicationHandlers.getPortForApplication(wsInfo.getAppID());
            wsInfoMap.put("Port", port);
            String endpointURI = wsInfo.getEndpointURI();
            String endpointURIPruned = endpointURI;
            if (endpointURI.startsWith("/")) {
                endpointURIPruned = endpointURI.substring(1);
            }
            wsInfoMap.put("EndpointURI", endpointURIPruned);
View Full Code Here

Examples of com.sun.appserv.management.ext.wsmgmt.WebServiceEndpointInfo

        }
        return wsConfig;
    }
   
    private static WebServiceEndpointConfig createWebServiceEndpointConfig(Object webServiceKey) {
        WebServiceEndpointInfo wsInfo = AMXUtil.getWebServiceEndpointInfo(webServiceKey);
        String appName = wsInfo.getAppID();
        String wsName = wsInfo.getName();
        String bundleName = wsInfo.getBundleName();
        String type = wsInfo.getServiceImplType();
        boolean isStandalone = wsInfo.isAppStandaloneModule();
        WebServiceEndpointConfig wsConfig = null;
        String fullQualName = buildFullyQualifiedWSName(bundleName, wsName, isStandalone);
        if (!isStandalone) {
            J2EEApplicationConfig appConfig
                =  AMXUtil.getDomainConfig().getJ2EEApplicationConfigMap().get(appName);
View Full Code Here

Examples of com.sun.appserv.management.ext.wsmgmt.WebServiceEndpointInfo

        }
        return wsConfig;
    }
   
    private static WebServiceEndpointConfig getWebServiceEndpointConfig(Object webServiceKey) {
        WebServiceEndpointInfo wsInfo = AMXUtil.getWebServiceEndpointInfo(webServiceKey);
        String appName = wsInfo.getAppID();
        String bundleName = wsInfo.getBundleName();
        String wsName = wsInfo.getName();
        String type = wsInfo.getServiceImplType();
        boolean isStandalone = wsInfo.isAppStandaloneModule();
        WebServiceEndpointConfig wsConfig = null;
        Map<String,WebServiceEndpointConfig> map = null;
        if (!isStandalone) {
            J2EEApplicationConfig appConfig
                =  AMXUtil.getDomainConfig().getJ2EEApplicationConfigMap().get(appName);
View Full Code Here

Examples of com.sun.appserv.management.ext.wsmgmt.WebServiceEndpointInfo

                 throw new CommandException (
                            getLocalizedString("NoAppFoundForWS",
                                                new Object[] {regName}));            
             }
            DomainRoot domainRoot = ProxyFactory.getInstance(mbsc).getDomainRoot();
            final WebServiceEndpointInfo info =
                domainRoot.getWebServiceMgr().getWebServiceEndpointInfo(fqWebServiceName);
            if (info == null)
            {
                String moduleName = fqWebServiceName.substring(firstHashIdx + 1,
                                            fqWebServiceName.lastIndexOf("#"));
View Full Code Here

Examples of com.sun.appserv.management.ext.wsmgmt.WebServiceEndpointInfo

   
    private String getStandAloneModuleType(MBeanServerConnection mbsc, String fqName)
                    throws CommandException
    {
         DomainRoot domainRoot = ProxyFactory.getInstance(mbsc).getDomainRoot();
         final WebServiceEndpointInfo info =
            domainRoot.getWebServiceMgr().getWebServiceEndpointInfo(
                    fqName);
         if (info == null){
             throw new CommandException (
                        getLocalizedString("NoStandaloneModuleFoundForWS", new Object[]{fqName}));
         }
         return info.getServiceImplType();
    }
View Full Code Here

Examples of com.sun.appserv.management.ext.wsmgmt.WebServiceEndpointInfo

        System.out.println("Fully qualified names...");
        for( final Object fqn : m.keySet() )
        {
            System.out.println("Info for web service " + fqn);
           
            final WebServiceEndpointInfo info =
                getDomainRoot().getWebServiceMgr().getWebServiceEndpointInfo(fqn);
           
            /*
            System.out.println("Keys are  " + propMap.keySet().size());
            for( final String key : infos.keySet() )
View Full Code Here

Examples of com.sun.appserv.management.ext.wsmgmt.WebServiceEndpointInfo

           
            if ( wsInfoListInMod != null ) {
                Iterator wsInfoItrInMod = wsInfoListInMod.iterator();
               
                while (wsInfoItrInMod.hasNext() ) {
                    WebServiceEndpointInfo wsInfo =
                            (WebServiceEndpointInfo) wsInfoItrInMod.next();
                   
                    // add this web service name and its fully qualified name
                    // the map that is being returned
                   
                    String wsFQN =  getFullyQualifiedName(appName, bundleName,
                            wsInfo.isAppStandaloneModule(), wsInfo.getName());
                    wsNameMap.put(wsFQN, wsInfo.getName());
                   
                    // update the internal weak hashmap
                    updateCache(wsFQN, wsInfo);
                }
            }
View Full Code Here

Examples of com.sun.appserv.management.ext.wsmgmt.WebServiceEndpointInfo

            return;
        }
        while(itr.hasNext()) {
            Map.Entry entry = (Map.Entry) itr.next();
            String fqn = (String) entry.getKey();
            WebServiceEndpointInfo wsInfo =
                    (WebServiceEndpointInfo) entry.getValue();
            if ( isFQNMatch( fqn, appName) ) {
                itr.remove();
            }
        }
View Full Code Here

Examples of com.sun.appserv.management.ext.wsmgmt.WebServiceEndpointInfo

            return null;
        }
        while(itr.hasNext()) {
            Map.Entry entry = (Map.Entry) itr.next();
            String fqn = (String) entry.getKey();
            WebServiceEndpointInfo wsInfo = (WebServiceEndpointInfo) entry.getValue();
            if ( isFQNMatch( fqn, appName, bundleName) ) {
                if ( nMap == null) {
                    nMap = new HashMap();
                }
                nMap.put(fqn, wsInfo.getName());
            }
        }
        return nMap;
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.