net.officefloor.plugin.socket.server
Interface ServerSocketHandler<CH extends ConnectionHandler>

All Known Implementing Classes:
HttpCommunicationProtocol, SslCommunicationProtocol, TcpCommunicationProtocol

public interface ServerSocketHandler<CH extends ConnectionHandler>

Handler for a ServerSocket.

Required to be implemented by the handler provider.

Author:
Daniel Sagenschneider

Method Summary
 CH createConnectionHandler(Connection connection)
          Creates a ConnectionHandler for a new Connection.
 Server<CH> createServer()
          Creates the Server to handle requests.
 

Method Detail

createServer

Server<CH> createServer()
Creates the Server to handle requests.

Returns:
Server to handle requests.

createConnectionHandler

CH createConnectionHandler(Connection connection)
Creates a ConnectionHandler for a new Connection.

Parameters:
connection - A new Connection requiring handling.
Returns:
ConnectionHandler to handle the new Connection.


Copyright © 2005-2011. All Rights Reserved.