Class HandshakeUtil
java.lang.Object
io.undertow.websockets.jsr.handshake.HandshakeUtil
Internal util class for handshaking
- Author:
- Norman Maurer
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic booleancheckOrigin(jakarta.websocket.server.ServerEndpointConfig config, io.undertow.websockets.spi.WebSocketHttpExchange exchange) Checks the orgin against thestatic ConfiguredServerEndpointgetConfig(io.undertow.websockets.core.WebSocketChannel channel) Returns theConfiguredServerEndpointwhich was used while create theWebSocketChannel.static voidprepareUpgrade(jakarta.websocket.server.ServerEndpointConfig config, io.undertow.websockets.spi.WebSocketHttpExchange exchange) Prepare for upgradestatic voidpropagate(io.undertow.server.HttpServerExchange source, ServletWebSocketHttpExchange target) static voidsetConfig(io.undertow.websockets.core.WebSocketChannel channel, ConfiguredServerEndpoint config) Deprecated.static voidsetConfig(io.undertow.websockets.core.WebSocketChannel channel, ConfiguredServerEndpoint config, io.undertow.websockets.spi.WebSocketHttpExchange exchange) Set theConfiguredServerEndpointwhich is used to create theWebSocketChannel.
-
Field Details
-
PATH_PARAMS
-
PRINCIPAL
-
-
Method Details
-
checkOrigin
public static boolean checkOrigin(jakarta.websocket.server.ServerEndpointConfig config, io.undertow.websockets.spi.WebSocketHttpExchange exchange) Checks the orgin against the -
prepareUpgrade
public static void prepareUpgrade(jakarta.websocket.server.ServerEndpointConfig config, io.undertow.websockets.spi.WebSocketHttpExchange exchange) Prepare for upgrade -
setConfig
public static void setConfig(io.undertow.websockets.core.WebSocketChannel channel, ConfiguredServerEndpoint config, io.undertow.websockets.spi.WebSocketHttpExchange exchange) Set theConfiguredServerEndpointwhich is used to create theWebSocketChannel. -
setConfig
@Deprecated public static void setConfig(io.undertow.websockets.core.WebSocketChannel channel, ConfiguredServerEndpoint config) Deprecated.Set theConfiguredServerEndpointwhich is used to create theWebSocketChannel. -
getConfig
public static ConfiguredServerEndpoint getConfig(io.undertow.websockets.core.WebSocketChannel channel) Returns theConfiguredServerEndpointwhich was used while create theWebSocketChannel. -
propagate
public static void propagate(io.undertow.server.HttpServerExchange source, ServletWebSocketHttpExchange target)
-