Package org.jacorb.orb.etf

Examples of org.jacorb.orb.etf.ListenEndpoint


        {
            if (logger.isDebugEnabled())
            {
                logger.debug ("Unable to find endpoints for " + p);
            }
            ListenEndpoint l = new ListenEndpoint();
            l.setProtocol(p);
            endpoints = new ArrayList<ListenEndpoint>();
            endpoints.add(l);
            listenEndpointList.put(p, endpoints);
        }
View Full Code Here


        if (listenEndpointList != null && listenEndpointList.size() > 0)
        {
            return;
        }

        ListenEndpoint defaultEndpoint = new ListenEndpoint();

        String address_str = configuration.getAttribute("OAAddress",null);
        if (address_str != null)
        {
            // build an iiop/ssliop protocol address.
            // create_protocol_address will allow iiop and ssliop only
            ProtocolAddressBase addr = createProtocolAddress(address_str);
            address = (IIOPAddress)addr;
            address.configure(configuration);
        }
        else
        {
            int oaPort = configuration.getAttributeAsInteger("OAPort",0);
            String oaHost = configuration.getAttribute("OAIAddr","");
            address = new IIOPAddress(oaHost,oaPort);
            address.configure(configuration);
        }

        String ssl_address_str = configuration.getAttribute("OASSLAddress",null);
        if (ssl_address_str != null)
        {
            // build a protocol address
            ProtocolAddressBase ssl_addr = createProtocolAddress(ssl_address_str);
            ssl_address = (IIOPAddress)ssl_addr;
            ssl_address.configure(configuration);

        }
        else
        {
            int ssl_oaPort = configuration.getAttributeAsInteger("OASSLPort",0);
            String ssl_oaHost = configuration.getAttribute("OAIAddr","");
            ssl_address = new IIOPAddress(ssl_oaHost,ssl_oaPort);
            ssl_address.configure(configuration);
        }

        if (address.getProtocol() == null)
        {
            address.setProtocol(Protocol.IIOP);
        }
        if (ssl_address.getProtocol() == null || ssl_address.getProtocol() == Protocol.SSLIOP)
        {
            ssl_address.setProtocol(Protocol.IIOP);
        }
        defaultEndpoint.setAddress(address);
        defaultEndpoint.setSSLAddress(ssl_address);
        defaultEndpoint.setProtocol(address.getProtocol());

        ArrayList<ListenEndpoint> s = listenEndpointList.get(address.getProtocol());
        s = new ArrayList<ListenEndpoint>();
        s.add (defaultEndpoint);
        listenEndpointList.put(address.getProtocol(), s);
View Full Code Here

                            {
                                throw new org.omg.CORBA.BAD_PARAM
                                    ("Error: an SSL port (ssl_port) is required when property jacorb.security.support_ssl is enabled");
                            }

                            ListenEndpoint listen_ep = new ListenEndpoint();
                            listen_ep.setAddress(address);
                            listen_ep.setSSLAddress(ssl_address);
                            listen_ep.setProtocol(protocol);

                            ArrayList<ListenEndpoint> s = listenEndpointList.get(protocol);
                            if ( s == null)
                            {
                                s = new ArrayList<ListenEndpoint>();
View Full Code Here

             Iterator<ListenEndpoint> it = transport_manager.getListenEndpoints(p).iterator();

             while (it.hasNext())
             {
                 Listener listener = factories.create_listener (null, (short)0, (short)0);
                 ListenEndpoint le = it.next();

                 if (listener instanceof ListenerBase)
                 {
                     ((ListenerBase)listener).setListenEndpoint(le);
                 }
View Full Code Here

TOP

Related Classes of org.jacorb.orb.etf.ListenEndpoint

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.