| 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface ProtocolHandler
The protocol handler interface defines the standard interface for protocol handlers. No matter what protocol, all stream-based handlers will have the followings called, in-order
| Method Summary | |
|---|---|
 boolean | 
doContinueResponse()
Continues writing the response to the channel.  | 
 boolean | 
doProcessRequest(ByteBuffer buffer,
                 int count)
Analyzes the buffer and return read active status.  | 
 boolean | 
doProcessResponse()
Creates and writes the response to the channel.  | 
 boolean | 
requestPending()
Tests the handler whether it needs to further process this request.  | 
 void | 
setConfig(LogConfig config)
Sets the config object.  | 
 void | 
setKey(SelectionKey key)
Sets the selection key for subsequent invocations.  | 
| Method Detail | 
|---|
void setConfig(LogConfig config)
config - The singleton config objectvoid setKey(SelectionKey key)
key - The nio selection key
boolean doProcessRequest(ByteBuffer buffer,
                         int count)
buffer - The buffer to look atcount - The number of new bytes in the buffer
boolean doProcessResponse()
                          throws IOException
IOException - Cannot write response to channel
boolean doContinueResponse()
                           throws IOException
IOException - Cannot write response to channelboolean requestPending()
  | 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||