|
|||||||||
| 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(SelectionKey key)
Invoked when the SelectorThread is about to expire a SelectionKey. |
ByteBuffer |
getByteBuffer()
Returns ByteBuffer, where PUReadFilter will read data |
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 |
|---|
String[] getProtocols()
boolean handle(Context context,
PUProtocolRequest protocolRequest)
throws IOException
IOExceptionboolean expireKey(SelectionKey key)
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 | ||||||||