RequestUpgradeStrategy for Undertow.
| Modifier and Type | Class and Description |
|---|---|
| private static class |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public Mono | upgrade(ServerWebExchange
the current exchange exchange, WebSocketHandler handler for the WebSocket session handler, String the selected sub-protocol got the handler subProtocol, Supplier<HandshakeInfo> factory to create HandshakeInfo for the WebSocket session handshakeInfoFactory)Implements org. Upgrade to a WebSocket session and handle it with the given handler. |
| UndertowRequestUpgradeStrategy | back to summary |
|---|---|
| public UndertowRequestUpgradeStrategy() | |
| upgrade | back to summary |
|---|---|
| public Mono Implements org. Doc from org. Upgrade to a WebSocket session and handle it with the given handler.
| |
| Modifier and Type | Field and Description |
|---|---|
| private final DataBufferFactory | |
| private final WebSocketHandler | |
| private final HandshakeInfo |
| Access | Constructor and Description |
|---|---|
| public | DefaultCallback(HandshakeInfo handshakeInfo, WebSocketHandler handler, DataBufferFactory bufferFactory)
|
| Modifier and Type | Method and Description |
|---|---|
| private UndertowWebSocketSession | |
| public void | onConnect(WebSocketHttpExchange exchange, WebSocketChannel channel)
Implements io. Is called once the WebSocket connection is established, which means the handshake was successful. |
| bufferFactory | back to summary |
|---|---|
| private final DataBufferFactory bufferFactory | |
| handler | back to summary |
|---|---|
| private final WebSocketHandler handler | |
| handshakeInfo | back to summary |
|---|---|
| private final HandshakeInfo handshakeInfo | |
| DefaultCallback | back to summary |
|---|---|
| public DefaultCallback(HandshakeInfo handshakeInfo, WebSocketHandler handler, DataBufferFactory bufferFactory) | |
| createSession | back to summary |
|---|---|
| private UndertowWebSocketSession createSession(WebSocketChannel channel) | |
| onConnect | back to summary |
|---|---|
| public void onConnect(WebSocketHttpExchange exchange, WebSocketChannel channel) Implements io. Doc from io. Is called once the WebSocket connection is established, which means the handshake was successful.
| |