Examples of IIOPListenerConfig


Examples of com.sun.appserv.management.config.IIOPListenerConfig

     
    final String  NAME  = "IIOPListenerConfigMgr-testCreateSSL";
   
    removeEx( NAME );
     
    final IIOPListenerConfig  newListener  =
      (IIOPListenerConfig)createProgeny( NAME, null );
     
    try
    {
      final Map<String,IIOPListenerConfig>  listeners  =
        getIIOPService().getIIOPListenerConfigMap();
     
      final IIOPListenerConfig listener =
        (IIOPListenerConfig)listeners.getNAME  );
      assert listener != null;
      assert listener == newListener;
     
      final String  CERT_NICKNAME  = NAME + "Cert";
     
      final SSLConfig ssl = listener.createSSLConfig( CERT_NICKNAME, null);
      assert ssl != null;
      assert ssl.getCertNickname().equals( CERT_NICKNAME );
     
      listener.removeSSLConfig();
    }
    finally
    {
      remove( NAME );
    }
View Full Code Here

Examples of com.sun.appserv.management.config.IIOPListenerConfig

            return null;
        ConfigConfig config = getConfig(configName);
        IIOPServiceConfig service = (config == null) ? null : config.getIIOPServiceConfig();
        if (service != null){
            Map<String,IIOPListenerConfig> listeners = service.getIIOPListenerConfigMap();
            IIOPListenerConfig listener =  listeners.get(listenerName);
            return listener;
        }
        return null;
    }
View Full Code Here

Examples of com.sun.appserv.management.config.IIOPListenerConfig

            if(isEdit){
                if(type.equals("jmx")){
                    JMXConnectorConfig jmxConfig = config.getAdminServiceConfig().getJMXConnectorConfigMap().get(oName);
                    sslContainerConfig = (SSLConfigContainer)jmxConfig;
                }else if(type.equals("iiop")){
                    IIOPListenerConfig iiopConfig = config.getIIOPServiceConfig().getIIOPListenerConfigMap().get(oName);
                    sslContainerConfig = (SSLConfigContainer)iiopConfig;
                }else if(type.equals("http")){
                    HTTPListenerConfig httpConfig = config.getHTTPServiceConfig().getHTTPListenerConfigMap().get(oName);
                    sslContainerConfig = (SSLConfigContainer)httpConfig;
                }else if(type.equals("nodeagent")){
View Full Code Here

Examples of com.sun.appserv.management.config.IIOPListenerConfig

                if(isEdit){
                    if(type.equals("jmx")){
                        JMXConnectorConfig jmxConfig = config.getAdminServiceConfig().getJMXConnectorConfigMap().get(oName);
                        sslContainerConfig = (SSLConfigContainer)jmxConfig;
                    }else if(type.equals("iiop")){
                        IIOPListenerConfig iiopConfig = config.getIIOPServiceConfig().getIIOPListenerConfigMap().get(oName);
                        sslContainerConfig = (SSLConfigContainer)iiopConfig;
                    }else if(type.equals("http")){
                        HTTPListenerConfig httpConfig = config.getHTTPServiceConfig().getHTTPListenerConfigMap().get(oName);
                        sslContainerConfig = (SSLConfigContainer)httpConfig;
                    }else if(type.equals("nodeagent")){
                        NodeAgentConfig agentConfig = AMXUtil.getDomainConfig().getNodeAgentConfigMap().get(oName);
                        JMXConnectorConfig jmxConfig = agentConfig.getJMXConnectorConfig();
                        sslContainerConfig = (SSLConfigContainer)jmxConfig;
                    }
                    if((sslContainerConfig != null) && (sslContainerConfig.getSSLConfig() != null)){
                        sslContainerConfig.removeSSLConfig();
                    }
                }else{
                    if(type.equals("iiop")){
                        Map props = (Map) handlerCtx.getFacesContext().getExternalContext().getSessionMap().get("iiopProps");
                        Map options = AMXUtil.convertToPropertiesOptionMap((Map)props.get("options"), null);
                        IIOPListenerConfig iiopConfig = config.getIIOPServiceConfig().createIIOPListenerConfig(
                                (String) props.get("iiopName"),
                                (String) props.get("address"),
                                options);
                        iiopConfig.setPort((String) props.get("port"));
                        iiopConfig.setEnabled((Boolean)props.get("listener"));
                        iiopConfig.setSecurityEnabled((Boolean)props.get("security"));
                        sslContainerConfig = (SSLConfigContainer)iiopConfig;
                    }else if(type.equals("http")){
                        Map props = (Map) handlerCtx.getFacesContext().getExternalContext().getSessionMap().get("httpProps");
                        Map options = AMXUtil.convertToPropertiesOptionMap((Map)props.get("options"), null);
                        int port = Integer.parseInt((String)props.get("port"));
View Full Code Here

Examples of com.sun.appserv.management.config.IIOPListenerConfig

                return;
            }
            String configName = (String) handlerCtx.getInputValue("ConfigName");
            String iiopListenerName = (String) handlerCtx.getInputValue("IiopName");
            ConfigConfig config = AMXUtil.getConfig(configName);
            IIOPListenerConfig iiopListConfig = config.getIIOPServiceConfig().getIIOPListenerConfigMap().get(iiopListenerName);
            handlerCtx.setOutputValue("NetwkAddr", iiopListConfig.getAddress());
            handlerCtx.setOutputValue("ListenerPort", iiopListConfig.getPort());
            handlerCtx.setOutputValue("Listener", iiopListConfig.getEnabled());
            handlerCtx.setOutputValue("security", iiopListConfig.getSecurityEnabled());
            handlerCtx.setOutputValue("Properties", iiopListConfig.getProperties());
        }catch (Exception ex){
            GuiUtil.handleException(handlerCtx, ex);
        }
    }
View Full Code Here

Examples of com.sun.appserv.management.config.IIOPListenerConfig

        boolean listener = ((Boolean)handlerCtx.getInputValue("Listener")).booleanValue();
        boolean security = ((Boolean)handlerCtx.getInputValue("security")).booleanValue();
       
        ConfigConfig config = AMXUtil.getConfig(configName);      
        try{
            IIOPListenerConfig iiopListConfig = null;
            Boolean edit = (Boolean) handlerCtx.getInputValue("Edit");
            if(!edit){
                Map iiopPropsMap = new HashMap();
                iiopPropsMap.put("iiopName", iiopListenerName);
                iiopPropsMap.put("address", address);
                iiopPropsMap.put("options", (Map)handlerCtx.getInputValue("AddProps"));
                iiopPropsMap.put("port", port);
                iiopPropsMap.put("listener", listener);
                iiopPropsMap.put("security", security);
                handlerCtx.getFacesContext().getExternalContext().getSessionMap().put("iiopProps", iiopPropsMap);
                //iiopListConfig = config.getIIOPServiceConfig().createIIOPListenerConfig(iiopListenerName, address, options);
            } else {
                Map iiopMap = config.getIIOPServiceConfig().getIIOPListenerConfigMap();
                iiopListConfig = (IIOPListenerConfig)iiopMap.get(iiopListenerName);           
                iiopListConfig.setAddress(address);
                AMXUtil.editProperties(handlerCtx, iiopListConfig);
                iiopListConfig.setPort(port);
                iiopListConfig.setEnabled(listener);
                iiopListConfig.setSecurityEnabled(security);
            }
        }catch (Exception ex){
            GuiUtil.handleException(handlerCtx, ex);
        }
    }
View Full Code Here

Examples of com.sun.appserv.management.config.IIOPListenerConfig

                    HashMap oneRow = new HashMap();
                    String name=configE.getName();               
                    oneRow.put("name", name);
                    oneRow.put("selected", (hasOrig)? ConnectorsHandlers.isSelected(name, selectedList): false);
                    if(isIIOP){
                        IIOPListenerConfig listConfig = (IIOPListenerConfig)configE;
                        boolean enabled = listConfig.getEnabled();
                        String ntwkAddress = listConfig.getAddress();
                        String listPort = listConfig.getPort();
                        oneRow.put("enabled", enabled);
                        oneRow.put("ntwkAddress", (ntwkAddress == null) ? " ": ntwkAddress);
                        oneRow.put("listPort", (listPort == null) ? " ": listPort);
                    }else if(isHTTP){
                        HTTPListenerConfig httpConfig = (HTTPListenerConfig)configE;
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.