Crossfire JXClient, Trunk
|
Public Member Functions | |
void | handle (SelectionKey sk) throws IOException |
Package Functions | |
RequestHandler (ChannelIO cio) | |
Private Member Functions | |
void | build () throws IOException |
boolean | parse () throws IOException |
boolean | receive (SelectionKey sk) throws IOException |
boolean | send () throws IOException |
Private Attributes | |
ChannelIO | cio |
ByteBuffer | rbb = null |
Reply | reply = null |
Request | request = null |
boolean | requestReceived = false |
Static Private Attributes | |
static int | created = 0 |
Primary driver class used by non-blocking Servers to receive, prepare, send, and shutdown requests.
Definition at line 52 of file RequestHandler.java.
|
package |
Definition at line 63 of file RequestHandler.java.
|
private |
Definition at line 114 of file RequestHandler.java.
References Request.action, Request.Action.GET, Request.Action.HEAD, Reply.Code.METHOD_NOT_ALLOWED, Reply.Code.OK, reply, request, Request.toString(), and Request.uri.
Referenced by handle().
void RequestHandler.handle | ( | SelectionKey | sk | ) | throws IOException |
Implements Handler.
Definition at line 125 of file RequestHandler.java.
References build(), cio, ChannelIO.close(), Reply.Code.NOT_FOUND, parse(), Reply.prepare(), rbb, receive(), Reply.release(), reply, request, send(), and ChannelIO.shutdown().
|
private |
Definition at line 101 of file RequestHandler.java.
References Reply.Code.BAD_REQUEST, Request.parse(), rbb, reply, and request.
Referenced by handle().
|
private |
Definition at line 81 of file RequestHandler.java.
References cio, ChannelIO.doHandshake(), ChannelIO.getReadBuf(), Request.isComplete(), rbb, ChannelIO.read(), and requestReceived.
Referenced by handle().
|
private |
Definition at line 187 of file RequestHandler.java.
References cio, reply, and Reply.send().
Referenced by handle().
|
private |
Definition at line 54 of file RequestHandler.java.
Referenced by handle(), receive(), RequestHandler(), and send().
|
staticprivate |
Definition at line 61 of file RequestHandler.java.
Referenced by RequestHandler().
|
private |
Definition at line 55 of file RequestHandler.java.
|
private |
|
private |
Definition at line 58 of file RequestHandler.java.
|
private |
Definition at line 57 of file RequestHandler.java.
Referenced by receive().