| Modifier and Type | Class and Description |
|---|---|
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private final CopyOnWriteMap | |
| private volatile HttpHandler |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public synchronized void | addProtocol(String
the product string to match productString, ChannelListener<? super StreamConnection> the open listener to call openListener, final HttpUpgradeHandshake a handshake implementation that can be used to verify the client request and modify the response handshake)Add a protocol to this handler. |
| public synchronized void | addProtocol(String
the product string to match productString, HttpUpgradeListener the open listener to call openListener, final HttpUpgradeHandshake a handshake implementation that can be used to verify the client request and modify the response handshake)Add a protocol to this handler. |
| private synchronized void | addProtocol(String productString, HttpUpgradeListener openListener, final ChannelListener<? super StreamConnection> channelListener, final HttpUpgradeHandshake handshake)
|
| public void | addProtocol(String
the product string to match productString, ChannelListener<? super StreamConnection> the open listener to call openListener)Add a protocol to this handler. |
| public void | addProtocol(String
the product string to match productString, HttpUpgradeListener the open listener to call openListener)Add a protocol to this handler. |
| public HttpHandler | Returns: the non-upgrade delegate handlerGet the non-upgrade delegate handler. |
| public void | handleRequest(final HttpServerExchange
the HTTP request/response exchange exchange)Implements io. Handle the request. |
| public synchronized void | |
| public synchronized void | removeProtocol(String
the product string to match productString, ChannelListener<? super StreamConnection> The open listener openListener)Remove a protocol from this handler. |
| public synchronized void | removeProtocol(String
the product string to match productString, HttpUpgradeListener The upgrade listener upgradeListener)Remove a protocol from this handler. |
| public ChannelUpgradeHandler | setNonUpgradeHandler(final HttpHandler
the non-upgrade delegate handler nonUpgradeHandler)Set the non-upgrade delegate handler. |
| handlers | back to summary |
|---|---|
| private final CopyOnWriteMap<String, List<ChannelUpgradeHandler. | |
| nonUpgradeHandler | back to summary |
|---|---|
| private volatile HttpHandler nonUpgradeHandler | |
| ChannelUpgradeHandler | back to summary |
|---|---|
| public ChannelUpgradeHandler() | |
| addProtocol | back to summary |
|---|---|
| public synchronized void addProtocol(String productString, ChannelListener<? super StreamConnection> openListener, final HttpUpgradeHandshake handshake) Add a protocol to this handler.
| |
| addProtocol | back to summary |
|---|---|
| public synchronized void addProtocol(String productString, HttpUpgradeListener openListener, final HttpUpgradeHandshake handshake) Add a protocol to this handler.
| |
| addProtocol | back to summary |
|---|---|
| private synchronized void addProtocol(String productString, HttpUpgradeListener openListener, final ChannelListener<? super StreamConnection> channelListener, final HttpUpgradeHandshake handshake) | |
| addProtocol | back to summary |
|---|---|
| public void addProtocol(String productString, ChannelListener<? super StreamConnection> openListener) Add a protocol to this handler.
| |
| addProtocol | back to summary |
|---|---|
| public void addProtocol(String productString, HttpUpgradeListener openListener) Add a protocol to this handler.
| |
| getNonUpgradeHandler | back to summary |
|---|---|
| public HttpHandler getNonUpgradeHandler() Get the non-upgrade delegate handler.
| |
| handleRequest | back to summary |
|---|---|
| public void handleRequest(final HttpServerExchange exchange) throws Exception Implements io. Doc from io. Handle the request.
| |
| removeProtocol | back to summary |
|---|---|
| public synchronized void removeProtocol(String productString) Remove a protocol from this handler. This will remove all upgrade handlers that match the product string
| |
| removeProtocol | back to summary |
|---|---|
| public synchronized void removeProtocol(String productString, ChannelListener<? super StreamConnection> openListener) Remove a protocol from this handler.
| |
| removeProtocol | back to summary |
|---|---|
| public synchronized void removeProtocol(String productString, HttpUpgradeListener upgradeListener) Remove a protocol from this handler.
| |
| setNonUpgradeHandler | back to summary |
|---|---|
| public ChannelUpgradeHandler setNonUpgradeHandler(final HttpHandler nonUpgradeHandler) Set the non-upgrade delegate handler.
| |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv final ChannelListener | |
| pack-priv final HttpUpgradeHandshake | |
| pack-priv final HttpUpgradeListener |
| Access | Constructor and Description |
|---|---|
| private | Holder(final HttpUpgradeListener listener, final HttpUpgradeHandshake handshake, ChannelListener<? super StreamConnection> channelListener)
|
| channelListener | back to summary |
|---|---|
| pack-priv final ChannelListener<? super StreamConnection> channelListener | |
| handshake | back to summary |
|---|---|
| pack-priv final HttpUpgradeHandshake handshake | |
| listener | back to summary |
|---|---|
| pack-priv final HttpUpgradeListener listener | |
| Holder | back to summary |
|---|---|
| private Holder(final HttpUpgradeListener listener, final HttpUpgradeHandshake handshake, ChannelListener<? super StreamConnection> channelListener) | |