Exemple #1
0
        public PluginI(Ice.Communicator communicator)
        {
            IceInternal.ProtocolPluginFacade facade = IceInternal.Util.getProtocolPluginFacade(communicator);

            _engine = new SSLEngine(facade);

            //
            // Register the endpoint factory. We have to do this now, rather than
            // in initialize, because the communicator may need to interpret
            // proxies before the plug-in is fully initialized.
            //
            IceInternal.EndpointFactory sslEndpointFactory = 
                                    new EndpointFactoryI(new Instance(_engine, IceSSL.EndpointType.value, "ssl"));
            facade.addEndpointFactory(sslEndpointFactory);
            
            IceInternal.ProtocolInstance wssProtocolInstance = 
                                    new IceInternal.ProtocolInstance(communicator, Ice.WSSEndpointType.value, "wss");
            facade.addEndpointFactory(new IceInternal.WSEndpointFactory(wssProtocolInstance, 
                                                             sslEndpointFactory.clone(wssProtocolInstance)));
        }