|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface ProtocolHandler
Once a protocol has been found by a ProtocolFinder
| Method Summary | |
|---|---|
boolean |
expireKey(java.nio.channels.SelectionKey key)
Invoked when the SelectorThread is about to expire a SelectionKey. |
java.nio.ByteBuffer |
getByteBuffer()
Returns ByteBuffer, where PUReadFilter will read data |
java.lang.String[] |
getProtocols()
Return an array of protocols supported by this ProtocolHandler. |
boolean |
handle(Context context,
PUProtocolRequest protocolRequest)
Handle the current request by either redirecting the request to a new port or by delivering the request to the proper endpoint. |
| Method Detail |
|---|
java.lang.String[] getProtocols()
boolean handle(Context context,
PUProtocolRequest protocolRequest)
throws java.io.IOException
java.io.IOExceptionboolean expireKey(java.nio.channels.SelectionKey key)
java.nio.ByteBuffer getByteBuffer()
ByteBuffer, where PUReadFilter will read data
ByteBuffer
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||