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