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
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static booleancheckOrigin(javax.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(javax.websocket.server.ServerEndpointConfig config, io.undertow.websockets.spi.WebSocketHttpExchange exchange)Prepare for upgradestatic voidsetConfig(io.undertow.websockets.core.WebSocketChannel channel, ConfiguredServerEndpoint config)Set theConfiguredServerEndpointwhich is used to create theWebSocketChannel.
-
-
-
Method Detail
-
checkOrigin
public static boolean checkOrigin(javax.websocket.server.ServerEndpointConfig config, io.undertow.websockets.spi.WebSocketHttpExchange exchange)Checks the orgin against the
-
prepareUpgrade
public static void prepareUpgrade(javax.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)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.
-
-