HttpHandler which will process the HttpServerExchange and do the actual handshake/upgrade
to WebSocket.
| Modifier and Type | Field and Description |
|---|---|
| private final WebSocketConnectionCallback | |
| private final Set | |
| private final HttpHandler | next
The handler that is invoked if there are no web socket headers |
| private final Set | |
| private final HttpUpgradeListener | upgradeListener
The upgrade listener. |
| Access | Constructor and Description |
|---|---|
| public | WebSocketProtocolHandshakeHandler(final WebSocketConnectionCallback
The callback)WebSocketConnectionCallback which will be executed once the handshake was
establishedCreate a new |
| public | WebSocketProtocolHandshakeHandler(final WebSocketConnectionCallback
The callback, final HttpHandler next)WebSocketConnectionCallback which will be executed once the handshake was
establishedCreate a new |
| public | WebSocketProtocolHandshakeHandler(Collection<Handshake>
The supported handshake methods handshakes, final WebSocketConnectionCallback The callback)WebSocketConnectionCallback which will be executed once the handshake was
establishedCreate a new |
| public | WebSocketProtocolHandshakeHandler(Collection<Handshake>
The supported handshake methods handshakes, final WebSocketConnectionCallback The callback, final HttpHandler next)WebSocketConnectionCallback which will be executed once the handshake was
establishedCreate a new |
| public | WebSocketProtocolHandshakeHandler(final HttpUpgradeListener
The callback)WebSocketConnectionCallback which will be executed once the handshake was
establishedCreate a new |
| public | WebSocketProtocolHandshakeHandler(final HttpUpgradeListener
The callback, final HttpHandler next)WebSocketConnectionCallback which will be executed once the handshake was
establishedCreate a new |
| public | WebSocketProtocolHandshakeHandler(Collection<Handshake>
The supported handshake methods handshakes, final HttpUpgradeListener The callback)WebSocketConnectionCallback which will be executed once the handshake was
establishedCreate a new |
| public | WebSocketProtocolHandshakeHandler(Collection<Handshake>
The supported handshake methods handshakes, final HttpUpgradeListener The callback, final HttpHandler next)WebSocketConnectionCallback which will be executed once the handshake was
establishedCreate a new |
| Modifier and Type | Method and Description |
|---|---|
| public WebSocketProtocolHandshakeHandler | Returns: current handlera new extension)ExtensionHandshake instanceAdd a new WebSocket Extension into the handshakes defined in this handler. |
| public Set | |
| public void | handleRequest(final HttpServerExchange
the HTTP request/response exchange exchange)Implements io. Handle the request. |
| callback | back to summary |
|---|---|
| private final WebSocketConnectionCallback callback | |
| handshakes | back to summary |
|---|---|
| private final Set<Handshake> handshakes | |
| next | back to summary |
|---|---|
| private final HttpHandler next The handler that is invoked if there are no web socket headers | |
| peerConnections | back to summary |
|---|---|
| private final Set<WebSocketChannel> peerConnections | |
| upgradeListener | back to summary |
|---|---|
| private final HttpUpgradeListener upgradeListener The upgrade listener. This will only be used if another web socket implementation is being layered on top. | |
| WebSocketProtocolHandshakeHandler | back to summary |
|---|---|
| public WebSocketProtocolHandshakeHandler(final WebSocketConnectionCallback callback) Create a new
| |
| WebSocketProtocolHandshakeHandler | back to summary |
|---|---|
| public WebSocketProtocolHandshakeHandler(final WebSocketConnectionCallback callback, final HttpHandler next) Create a new
| |
| WebSocketProtocolHandshakeHandler | back to summary |
|---|---|
| public WebSocketProtocolHandshakeHandler(Collection<Handshake> handshakes, final WebSocketConnectionCallback callback) Create a new
| |
| WebSocketProtocolHandshakeHandler | back to summary |
|---|---|
| public WebSocketProtocolHandshakeHandler(Collection<Handshake> handshakes, final WebSocketConnectionCallback callback, final HttpHandler next) Create a new
| |
| WebSocketProtocolHandshakeHandler | back to summary |
|---|---|
| public WebSocketProtocolHandshakeHandler(final HttpUpgradeListener callback) Create a new
| |
| WebSocketProtocolHandshakeHandler | back to summary |
|---|---|
| public WebSocketProtocolHandshakeHandler(final HttpUpgradeListener callback, final HttpHandler next) Create a new
| |
| WebSocketProtocolHandshakeHandler | back to summary |
|---|---|
| public WebSocketProtocolHandshakeHandler(Collection<Handshake> handshakes, final HttpUpgradeListener callback) Create a new
| |
| WebSocketProtocolHandshakeHandler | back to summary |
|---|---|
| public WebSocketProtocolHandshakeHandler(Collection<Handshake> handshakes, final HttpUpgradeListener callback, final HttpHandler next) Create a new
| |
| addExtension | back to summary |
|---|---|
| public WebSocketProtocolHandshakeHandler addExtension(ExtensionHandshake extension) Add a new WebSocket Extension into the handshakes defined in this handler.
| |
| getPeerConnections | back to summary |
|---|---|
| public Set | |
| handleRequest | back to summary |
|---|---|
| public void handleRequest(final HttpServerExchange exchange) throws Exception Implements io. Doc from io. Handle the request.
| |