|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.grizzly.http.portunif.HttpProtocolHandler
public class HttpProtocolHandler
Redirect the request to the proper protocol, which can be http or https.
Nested Class Summary | |
---|---|
static class |
HttpProtocolHandler.Mode
|
Field Summary | |
---|---|
protected String[][] |
protocols
The protocols supported by this handler. |
Constructor Summary | |
---|---|
HttpProtocolHandler()
|
|
HttpProtocolHandler(HttpProtocolHandler.Mode mode)
|
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()
Returns an array of supported protocols. |
boolean |
handle(Context context,
PUProtocolRequest protocolRequest)
Redirect the request to the protocol defined in the protocolInfo . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected String[][] protocols
Constructor Detail |
---|
public HttpProtocolHandler()
public HttpProtocolHandler(HttpProtocolHandler.Mode mode)
Method Detail |
---|
public boolean handle(Context context, PUProtocolRequest protocolRequest) throws IOException
protocolInfo
. Protocols supported are http and https.
handle
in interface ProtocolHandler
protocolInfo
- The protocol that needs to be redirected.
IOException
public String[] getProtocols()
getProtocols
in interface ProtocolHandler
public boolean expireKey(SelectionKey key)
expireKey
in interface ProtocolHandler
public ByteBuffer getByteBuffer()
ProtocolHandler
ByteBuffer
, where PUReadFilter will read data
getByteBuffer
in interface ProtocolHandler
ByteBuffer
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |