|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.officefloor.plugin.socket.server.http.protocol.HttpConnectionHandler
public class HttpConnectionHandler
HTTP ConnectionHandler.
| Constructor Summary | |
|---|---|
HttpConnectionHandler(HttpConversation conversation,
HttpRequestParser parser,
int maxTextPartLength,
long connectionTimeout)
Initiate. |
|
| Method Summary | |
|---|---|
void |
handleIdleConnection(IdleContext context)
Handles a Connection being idled. |
void |
handleRead(ReadContext context)
Handles a read from the SocketChannel. |
void |
handleWrite(WriteContext context)
Handles a potential write to the SocketChannel. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public HttpConnectionHandler(HttpConversation conversation,
HttpRequestParser parser,
int maxTextPartLength,
long connectionTimeout)
conversation - HttpConversation.parser - HttpRequestParser.maxTextPartLength - Maximum length of text part for HttpRequest.connectionTimeout - Connection timeout in milliseconds.| Method Detail |
|---|
public void handleRead(ReadContext context)
throws IOException
ConnectionHandlerSocketChannel.
handleRead in interface ConnectionHandlercontext - ReadContext.
IOException - If fails to obtain data from the ReadContext.public void handleWrite(WriteContext context)
ConnectionHandlerSocketChannel.
handleWrite in interface ConnectionHandlercontext - WriteContext.public void handleIdleConnection(IdleContext context)
ConnectionHandlerConnection being idled.
handleIdleConnection in interface ConnectionHandlercontext - IdleContext.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||