HttpHandlerpublic final class ChannelUpgradeHandler extends Object implements HttpHandler
| Constructor | Description |
|---|---|
ChannelUpgradeHandler() |
| Modifier and Type | Method | Description |
|---|---|---|
void |
addProtocol(String productString,
HttpUpgradeListener openListener) |
Add a protocol to this handler.
|
void |
addProtocol(String productString,
HttpUpgradeListener openListener,
HttpUpgradeHandshake handshake) |
Add a protocol to this handler.
|
void |
addProtocol(String productString,
org.xnio.ChannelListener<? super org.xnio.StreamConnection> openListener) |
Add a protocol to this handler.
|
void |
addProtocol(String productString,
org.xnio.ChannelListener<? super org.xnio.StreamConnection> openListener,
HttpUpgradeHandshake handshake) |
Add a protocol to this handler.
|
HttpHandler |
getNonUpgradeHandler() |
Get the non-upgrade delegate handler.
|
void |
handleRequest(HttpServerExchange exchange) |
Handle the request.
|
void |
removeProtocol(String productString) |
Remove a protocol from this handler.
|
void |
removeProtocol(String productString,
HttpUpgradeListener upgradeListener) |
Remove a protocol from this handler.
|
void |
removeProtocol(String productString,
org.xnio.ChannelListener<? super org.xnio.StreamConnection> openListener) |
Remove a protocol from this handler.
|
ChannelUpgradeHandler |
setNonUpgradeHandler(HttpHandler nonUpgradeHandler) |
Set the non-upgrade delegate handler.
|
public void addProtocol(String productString, org.xnio.ChannelListener<? super org.xnio.StreamConnection> openListener, HttpUpgradeHandshake handshake)
productString - the product string to matchopenListener - the open listener to callhandshake - a handshake implementation that can be used to verify the client request and modify the responsepublic void addProtocol(String productString, HttpUpgradeListener openListener, HttpUpgradeHandshake handshake)
productString - the product string to matchopenListener - the open listener to callhandshake - a handshake implementation that can be used to verify the client request and modify the responsepublic void addProtocol(String productString, org.xnio.ChannelListener<? super org.xnio.StreamConnection> openListener)
productString - the product string to matchopenListener - the open listener to callpublic void addProtocol(String productString, HttpUpgradeListener openListener)
productString - the product string to matchopenListener - the open listener to callpublic void removeProtocol(String productString)
productString - the product string to matchpublic void removeProtocol(String productString, org.xnio.ChannelListener<? super org.xnio.StreamConnection> openListener)
productString - the product string to matchopenListener - The open listenerpublic void removeProtocol(String productString, HttpUpgradeListener upgradeListener)
productString - the product string to matchupgradeListener - The upgrade listenerpublic HttpHandler getNonUpgradeHandler()
public ChannelUpgradeHandler setNonUpgradeHandler(HttpHandler nonUpgradeHandler)
nonUpgradeHandler - the non-upgrade delegate handlerpublic void handleRequest(HttpServerExchange exchange) throws Exception
HttpHandlerhandleRequest in interface HttpHandlerexchange - the HTTP request/response exchangeExceptionCopyright © 2018. All rights reserved.