Examples of IiopListener


Examples of org.glassfish.orb.admin.config.IiopListener

    @Override
    public void delete(DeleteSsl command, ActionReport report) {

        IiopService iiopService = command.config.getExtensionByType(IiopService.class);
        IiopListener iiopListener = null;
        for (IiopListener listener : iiopService.getIiopListener()) {
            if (listener.getId().equals(command.listenerId)) {
                iiopListener = listener;
            }
        }

        if (iiopListener == null) {
            report.setMessage(localStrings.getLocalString(
                    "delete.ssl.iiop.listener.notfound",
                    "Iiop Listener named {0} not found", command.listenerId));
            report.setActionExitCode(ActionReport.ExitCode.FAILURE);
            return;
        }

        if (iiopListener.getSsl() == null) {
            report.setMessage(localStrings.getLocalString(
                    "delete.ssl.element.doesnotexist", "Ssl element does " +
                    "not exist for Listener named {0}", command.listenerId));
            report.setActionExitCode(ActionReport.ExitCode.FAILURE);
            return;
View Full Code Here

Examples of org.glassfish.orb.admin.config.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 org.glassfish.orb.admin.config.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 org.glassfish.orb.admin.config.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 org.glassfish.orb.admin.config.IiopListener

            serverHost = props.getProperty(ORBConstants.SERVER_HOST_PROPERTY );
        }


        if (serverHost == null) {
            IiopListener il = getClearTextIiopListener() ;
            if (il != null) {
                // For this case, use same value as ORBInitialHost,
                serverHost = il.getAddress();
            }
        }

        if (serverHost != null) {
            // set the property, to be used during ORB initialization
View Full Code Here

Examples of org.jacorb.orb.iiop.IIOPListener

     * @deprecated This method cannot return a sensible result in the presence
     * of alternate transports, use {@link #getEndpointProfiles()} instead.
     */
    public int getPort()
    {
        IIOPListener l = getIIOPListener();
        if (l != null)
        {
            IIOPProfile profile = (IIOPProfile)l.endpoint();
            return ((IIOPAddress)profile.getAddress()).getPort();
        }

        throw new RuntimeException("Cannot find server port for non-IIOP transport");
    }
View Full Code Here

Examples of org.jacorb.orb.iiop.IIOPListener

     * @deprecated This method cannot return a sensible result in the presence
     * of alternate transports, use {@link #getEndpointProfiles()} instead.
     */
    public int getSSLPort()
    {
        IIOPListener listener = getIIOPListener();
        if (listener != null)
        {
            return ((IIOPProfile)listener.endpoint()).getSSLPort();
        }

        throw new RuntimeException("Non-IIOP transport does not have an SSL port");
    }
View Full Code Here

Examples of org.jacorb.orb.iiop.IIOPListener

     * @deprecated This method cannot return a sensible result in the presence
     * of alternate transports, use {@link #getEndpointProfiles()} instead.
     */
    public String getAddress()
    {
        IIOPListener l = getIIOPListener();
        if (l != null)
        {
            IIOPProfile profile = (IIOPProfile)l.endpoint();
            return ((IIOPAddress)profile.getAddress()).getHostname();
        }

        throw new RuntimeException("Cannot find server address for non-IIOP transport");
    }
View Full Code Here

Examples of org.jacorb.orb.iiop.IIOPListener

     * @deprecated This method cannot return a sensible result in the presence
     * of alternate transports, use {@link #getEndpointProfiles()} instead.
     */
    public int getPort()
    {
        IIOPListener l = getIIOPListener();
        if (l != null)
        {
            IIOPProfile profile = (IIOPProfile)l.endpoint();
            return ((IIOPAddress)profile.getAddress()).getPort();
        }
        else
        {
            throw new RuntimeException
View Full Code Here

Examples of org.jacorb.orb.iiop.IIOPListener

     * @deprecated This method cannot return a sensible result in the presence
     * of alternate transports, use {@link #getEndpointProfiles()} instead.
     */
    public int getSSLPort()
    {
        IIOPListener l = getIIOPListener();
        if (l != null)
        {
            IIOPProfile profile = (IIOPProfile)l.endpoint();
            return profile.getSSLPort();
        }
        else
        {
            throw new RuntimeException
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.