|
||||||||||
| 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.TcpServer
public class TcpServer
TCP Server.
| Constructor Summary | |
|---|---|
TcpServer(int newConnectionFlowIndex)
Initiate. |
|
| Method Summary | |
|---|---|
void |
processRequest(TcpConnectionHandler connectionHandler,
Object attachment)
Starts the processing the request identified by the ConnectionHandler with the Server. |
void |
setManagedObjectExecuteContext(ManagedObjectExecuteContext<Indexed> executeContext)
Provides the Server the ManagedObjectExecuteContext to
enable it to invoke ProcessState instances to process input. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TcpServer(int newConnectionFlowIndex)
newConnectionFlowIndex - Flow index to handle a new connection.| Method Detail |
|---|
public void setManagedObjectExecuteContext(ManagedObjectExecuteContext<Indexed> executeContext)
ServerServer the ManagedObjectExecuteContext to
enable it to invoke ProcessState instances to process input.
setManagedObjectExecuteContext in interface Server<TcpConnectionHandler>executeContext - ManagedObjectExecuteContext.
public void processRequest(TcpConnectionHandler connectionHandler,
Object attachment)
throws IOException
Server
Starts the processing the request identified by the
ConnectionHandler with the Server.
To process a stream of input have the ConnectionHandler complete
the Request with zero size and use the Connection passed
to the ConnectionHandler.
processRequest in interface Server<TcpConnectionHandler>connectionHandler - ConnectionHandler for the Connection.attachment - Optional attachment provided by the ConnectionHandler
specific to this request. May be null.
IOException - If fails to start processing the request.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||