org.jacorb.orb.iiop
Class IIOPListener

java.lang.Object
  extended by _ListenerLocalBase
      extended by org.jacorb.orb.etf.ListenerBase
          extended by org.jacorb.orb.iiop.IIOPListener
All Implemented Interfaces:
org.apache.avalon.framework.configuration.Configurable

public class IIOPListener
extends ListenerBase

Version:
$Id: IIOPListener.java,v 1.37 2006/07/19 15:25:46 alphonse.bendt Exp $
Author:
Andre Spiegel

Nested Class Summary
 class IIOPListener.Acceptor
           
 
Field Summary
 
Fields inherited from class org.jacorb.orb.etf.ListenerBase
acceptor, configuration, logger, orb, profile, up
 
Constructor Summary
IIOPListener()
           
 
Method Summary
 void configure(org.apache.avalon.framework.configuration.Configuration configuration)
           
protected  Connection createServerConnection(java.net.Socket socket, boolean is_ssl)
          Template method to create a server-side ETF Connection.
 void destroy()
          The Listener is instructed to close its endpoint.
 void listen()
          It is possible that connection requests arrive after the initial creation of the Listener instance but before the conclusion of the configuration of the specific endpoint in this plugin.
 void renewSSLServerSocket()
           
 
Methods inherited from class org.jacorb.orb.etf.ListenerBase
accept, completed_data, deliverConnection, endpoint, set_handle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IIOPListener

public IIOPListener()
Method Detail

configure

public void configure(org.apache.avalon.framework.configuration.Configuration configuration)
               throws org.apache.avalon.framework.configuration.ConfigurationException
Specified by:
configure in interface org.apache.avalon.framework.configuration.Configurable
Overrides:
configure in class ListenerBase
Throws:
org.apache.avalon.framework.configuration.ConfigurationException

listen

public void listen()
It is possible that connection requests arrive after the initial creation of the Listener instance but before the conclusion of the configuration of the specific endpoint in this plugin. In order to provide a clear end of this configuration state, we added the listen() method. It is called by the ORB when it ready for incoming connection and thus signals the Listener instance to start processing the incoming connection requests. Therefore, a Listener instance shall not deliver incoming connections to the ORB before this method was called.

Overrides:
listen in class ListenerBase

destroy

public void destroy()
The Listener is instructed to close its endpoint. It shall no longer accept any connection requests and shall close all connections opened by it.

Overrides:
destroy in class ListenerBase

renewSSLServerSocket

public void renewSSLServerSocket()

createServerConnection

protected Connection createServerConnection(java.net.Socket socket,
                                            boolean is_ssl)
                                     throws java.io.IOException
Template method to create a server-side ETF Connection. This can be overridden by subclasses to pass a different kind of Connection up to the ORB.

Throws:
java.io.IOException