Examples of IiopListener


Examples of com.sun.enterprise.config.serverbeans.IiopListener

    /**
    This operation deletes Ssl sub-element from current element;
     */
    public void deleteSsl() throws ConfigException
    {
        IiopListener listener = (IiopListener)getConfigBeanByXPath( getBasePath() );
        listener.setSsl(null);
       
        getConfigContext().flush();
    }
View Full Code Here

Examples of com.sun.enterprise.config.serverbeans.IiopListener

     */
    public void createSsl(String certNickname, Boolean ssl2Enabled, String ssl2Ciphers,
    Boolean ssl3Enabled, String ssl3TlsCiphers,
    Boolean tlsEnabled,  Boolean tlsRollbackEnabled, Boolean clientAuthEnabled) throws ConfigException
    {
        IiopListener listener = (IiopListener)getConfigBeanByXPath( getBasePath() );
        try
        {
            if(listener.getSsl()!=null)
            {
                listener = null;
        String msg = localStrings.getString( "admin.server.core.mbean.config.orblistener_has_ssl_created" );
                throw new ConfigException( msg );
            }
        }
        catch (ConfigException e)
        {
            if(listener==null)
                throw e;
        }
       
        Ssl ssl = new Ssl();
        //strings
        if(certNickname!=null)
            ssl.setCertNickname(certNickname);
        if(ssl2Ciphers!=null)
            ssl.setSsl2Ciphers(ssl2Ciphers);
        if(ssl3TlsCiphers!=null)
            ssl.setSsl3TlsCiphers(ssl3TlsCiphers);
        //Booleans
        if(ssl2Enabled!=null)
            ssl.setSsl2Enabled(ssl2Enabled.booleanValue());
        if(ssl3Enabled!=null)
            ssl.setSsl3Enabled(ssl3Enabled.booleanValue());
        if(tlsEnabled!=null)
            ssl.setTlsEnabled(tlsEnabled.booleanValue());
        if(tlsRollbackEnabled!=null)
            ssl.setTlsRollbackEnabled(tlsRollbackEnabled.booleanValue());
        if(clientAuthEnabled!=null)
            ssl.setClientAuthEnabled(clientAuthEnabled.booleanValue());
       
        listener.setSsl(ssl);
       
        getConfigContext().flush();
    }
View Full Code Here

Examples of com.sun.enterprise.config.serverbeans.IiopListener

    /**
    This operation checks Ssl existance in current element;
     */
    public boolean isSslCreated() throws ConfigException
    {
        IiopListener listener = (IiopListener)getConfigBeanByXPath( getBasePath() );
        return (listener.getSsl()!=null);
    }
View Full Code Here

Examples of com.sun.enterprise.config.serverbeans.IiopListener

    This operation creates OrbListener according to attributes and adds(links) it to current ORB;
    If attribute is 'null' then default value will be set.
     */
    public void createORBListener(String id, String address, Integer port, Boolean enabled) throws ConfigException
    {
        IiopListener listener = new IiopListener();
        if(id!=null)
            listener.setId(id);
        if(address!=null)
            listener.setAddress(address);
        if(port!=null)
            listener.setPort(port.toString());
        if(enabled!=null)
            listener.setEnabled(enabled.booleanValue());
        IiopService service = (IiopService)getConfigBeanByXPath( ServerXPathHelper.getIIOPServiceXpath() );
        service.addIiopListener(listener);
       
        getConfigContext().flush();
    }
View Full Code Here

Examples of com.sun.enterprise.config.serverbeans.IiopListener

    @throws ConfigException in case of failure.
     */
    public void deleteORBListener(String id) throws ConfigException
    {
        IiopService  service  = (IiopService)getConfigBeanByXPath( ServerXPathHelper.getIIOPServiceXpath() );
        IiopListener listener = service.getIiopListenerById(id);
        if(listener!=null)
            service.removeIiopListener(listener);
        getConfigContext().flush();
    }
View Full Code Here

Examples of com.sun.enterprise.config.serverbeans.IiopListener

            initialHost = props.getProperty(
                ORBConstants.INITIAL_HOST_PROPERTY );
        }

        if (initialHost == null) {
            IiopListener il = getClearTextIiopListener() ;
            if (il != null) {
                initialHost = il.getAddress();
            }
        }

        if (initialHost == null) {
            initialHost = DEFAULT_ORB_INIT_HOST;
View Full Code Here

Examples of com.sun.enterprise.config.serverbeans.IiopListener

            initialPort = props.getProperty(
                ORBConstants.INITIAL_PORT_PROPERTY);
        }

        if (initialPort == null) {
            IiopListener il = getClearTextIiopListener() ;
            if (il != null) {
                initialPort = il.getPort();
            }
        }


        if (initialPort == null) {
View Full Code Here

Examples of com.sun.enterprise.config.serverbeans.IiopListener

    }

    private int resolvePort( Server server, IiopListener listener ) {
        fineLog( "resolvePort: server {0} listener {1}", server, listener ) ;

        IiopListener ilRaw = GlassFishConfigBean.getRawView( listener ) ;
        fineLog( "resolvePort: ilRaw {0}", ilRaw ) ;

        PropertyResolver pr = new PropertyResolver( domain, server.getName() ) ;
        fineLog( "resolvePort: pr {0}", pr ) ;

        String port = pr.getPropertyValue( ilRaw.getPort() ) ;
        fineLog( "resolvePort: port {0}", port ) ;

        return Integer.parseInt(port) ;
    }
View Full Code Here

Examples of com.sun.enterprise.config.serverbeans.IiopListener

            initialHost = props.getProperty(
                ORBConstants.INITIAL_HOST_PROPERTY );
        }

        if (initialHost == null) {
            IiopListener il = getClearTextIiopListener() ;
            if (il != null) {
                initialHost = il.getAddress();
            }
        }

        if (initialHost == null) {
            initialHost = DEFAULT_ORB_INIT_HOST;
View Full Code Here

Examples of com.sun.enterprise.config.serverbeans.IiopListener

            initialPort = props.getProperty(
                ORBConstants.INITIAL_PORT_PROPERTY);
        }

        if (initialPort == null) {
            IiopListener il = getClearTextIiopListener() ;
            if (il != null) {
                initialPort = il.getPort();
            }
        }


        if (initialPort == null) {
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.