org.eclipse.net4j.acceptor
Interface IAcceptor

All Superinterfaces:
IContainer<IConnector>, INotifier
All Known Subinterfaces:
IHTTPAcceptor, IJVMAcceptor, InternalAcceptor, ITCPAcceptor

public interface IAcceptor
extends IContainer<IConnector>

Accepts incoming connection requests from client connectors and creates the appropriate server connectors.

Since the process of accepting connection requests is heavily dependent on the implementation of the respective connectors the only public API is introspection and notification.

This interface is not intended to be implemented by clients. Service providers must extend the abstract Acceptor class.

Class Diagram:

Sequence Diagram:


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.eclipse.net4j.util.event.INotifier
INotifier.Introspection
 
Method Summary
 IConnector[] getAcceptedConnectors()
          Returns an array of the connectors that have been accepted by this acceptor and not been closed since.
 IRegistry<IFactoryKey,IFactory> getProtocolFactoryRegistry()
          Returns the factory registry used by this acceptor to prepare newly accepted connectors.
 java.util.List<IElementProcessor> getProtocolPostProcessors()
          Returns the post processors used by this acceptor to prepare newly accepted connectors.
 
Methods inherited from interface org.eclipse.net4j.util.container.IContainer
getElements, isEmpty
 
Methods inherited from interface org.eclipse.net4j.util.event.INotifier
addListener, removeListener
 

Method Detail

getProtocolFactoryRegistry

IRegistry<IFactoryKey,IFactory> getProtocolFactoryRegistry()
Returns the factory registry used by this acceptor to prepare newly accepted connectors.


getProtocolPostProcessors

java.util.List<IElementProcessor> getProtocolPostProcessors()
Returns the post processors used by this acceptor to prepare newly accepted connectors.


getAcceptedConnectors

IConnector[] getAcceptedConnectors()
Returns an array of the connectors that have been accepted by this acceptor and not been closed since.


Copyright (c) 2004 - 2008 Eike Stepper, Germany.
All Rights Reserved.