public class HttpRedirectorProtocolHandler extends Object implements com.sun.enterprise.web.portunif.ProtocolHandler
| Modifier and Type | Field and Description |
|---|---|
protected String[] |
protocols
The protocols supported by this handler.
|
| Constructor and Description |
|---|
HttpRedirectorProtocolHandler(int redirectPort) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
expireKey(SelectionKey key)
Invoked when the SelectorThread is about to expire a SelectionKey.
|
String[] |
getProtocols()
Returns an array of supported protocols.
|
void |
handle(com.sun.enterprise.web.portunif.util.ProtocolInfo protocolInfo)
Redirect the request to the protocol defined in the
protocolInfo. |
protected String[] protocols
public HttpRedirectorProtocolHandler(int redirectPort)
public void handle(com.sun.enterprise.web.portunif.util.ProtocolInfo protocolInfo)
throws IOException
protocolInfo. Protocols supported are http and https.handle in interface com.sun.enterprise.web.portunif.ProtocolHandlerprotocolInfo - The protocol that needs to be redirected.IOExceptionpublic String[] getProtocols()
getProtocols in interface com.sun.enterprise.web.portunif.ProtocolHandlerpublic boolean expireKey(SelectionKey key)
expireKey in interface com.sun.enterprise.web.portunif.ProtocolHandlerCopyright © 2005–2018 Oracle Corporation. All rights reserved.