|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface RequestHandler
A request handler that answers client requests in some given format
Method Summary | |
---|---|
StreamRequestHandler |
handleRequest(java.io.DataInputStream inputStream,
java.io.DataOutputStream outputStream)
Handles the request as determined by the protocol and command provided as input. |
boolean |
isCompleteRequest(java.nio.ByteBuffer buffer)
This method is used by non-blocking code to determine if the give buffer represents a complete request. |
Method Detail |
---|
StreamRequestHandler handleRequest(java.io.DataInputStream inputStream, java.io.DataOutputStream outputStream) throws java.io.IOException
inputStream
- outputStream
-
java.io.IOException
boolean isCompleteRequest(java.nio.ByteBuffer buffer)
buffer
- Buffer to check; the buffer is reset to position 0 before
calling this method and the caller must reset it after the call
returns
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |