|
||||||||||
| 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 ProtocolHandlerprotocolInfo - The protocol that needs to be redirected.
IOExceptionpublic String[] getProtocols()
getProtocols in interface ProtocolHandlerpublic boolean expireKey(SelectionKey key)
expireKey in interface ProtocolHandlerpublic ByteBuffer getByteBuffer()
ProtocolHandlerByteBuffer, where PUReadFilter will read data
getByteBuffer in interface ProtocolHandlerByteBuffer
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||