Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.szegedi.nioserver
Interface ProtocolHandlerFactory  view ProtocolHandlerFactory download ProtocolHandlerFactory.java


public interface ProtocolHandlerFactory

An interface for factories of protocol handlers. A single protocol handler factory is associated with each serviced server socket. When a connection is accepted on the server socket, a new protocol handler is requested from the factory and associated with the connection.

Version:
$Id: ProtocolHandlerFactory.java,v 1.2 2002/02/11 08:18:30 szegedia Exp $

Method Summary
 ProtocolHandler createProtocolHandler(java.nio.channels.SocketChannel channel)
          Called whenever a connection is accepted on a server socket for which this factory was registered.
 

Method Detail

createProtocolHandler

public ProtocolHandler createProtocolHandler(java.nio.channels.SocketChannel channel)
Called whenever a connection is accepted on a server socket for which this factory was registered.