|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.officefloor.plugin.socket.server.tcp.protocol.TcpCommunicationProtocol
public class TcpCommunicationProtocol
| Field Summary | |
|---|---|
static String |
PROPERTY_MAXIMUM_IDLE_TIME
Property to obtain the maximum idle time before the Connection is
closed. |
| Constructor Summary | |
|---|---|
TcpCommunicationProtocol()
|
|
| Method Summary | |
|---|---|
TcpConnectionHandler |
createConnectionHandler(Connection connection)
Creates a ConnectionHandler for a new Connection. |
Server<TcpConnectionHandler> |
createServer()
Creates the Server to handle requests. |
ServerSocketHandler<TcpConnectionHandler> |
createServerSocketHandler(AbstractAsyncManagedObjectSource.MetaDataContext<None,Indexed> context,
BufferSquirtFactory bufferSquirtFactory)
Creates the ServerSocketHandler. |
void |
loadSpecification(AbstractAsyncManagedObjectSource.SpecificationContext context)
Loads any specifications for this communication protocol. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String PROPERTY_MAXIMUM_IDLE_TIME
Connection is
closed.
| Constructor Detail |
|---|
public TcpCommunicationProtocol()
| Method Detail |
|---|
public void loadSpecification(AbstractAsyncManagedObjectSource.SpecificationContext context)
CommunicationProtocol
loadSpecification in interface CommunicationProtocol<TcpConnectionHandler>context - AbstractAsyncManagedObjectSource.SpecificationContext.
public ServerSocketHandler<TcpConnectionHandler> createServerSocketHandler(AbstractAsyncManagedObjectSource.MetaDataContext<None,Indexed> context,
BufferSquirtFactory bufferSquirtFactory)
throws Exception
CommunicationProtocolServerSocketHandler.
createServerSocketHandler in interface CommunicationProtocol<TcpConnectionHandler>context - AbstractAsyncManagedObjectSource.MetaDataContext.bufferSquirtFactory - BufferSquirtFactory.
Exception - If fails to create the ServerSocketHandler.public Server<TcpConnectionHandler> createServer()
ServerSocketHandlerServer to handle requests.
createServer in interface ServerSocketHandler<TcpConnectionHandler>Server to handle requests.public TcpConnectionHandler createConnectionHandler(Connection connection)
ServerSocketHandlerConnectionHandler for a new Connection.
createConnectionHandler in interface ServerSocketHandler<TcpConnectionHandler>connection - A new Connection requiring handling.
ConnectionHandler to handle the new Connection.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||