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