public final class HandshakeUtil
extends java.lang.Object
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 |
Modifier and Type | Method | Description |
---|---|---|
static boolean |
checkOrigin(javax.websocket.server.ServerEndpointConfig config,
io.undertow.websockets.spi.WebSocketHttpExchange exchange) |
Checks the orgin against the
|
static ConfiguredServerEndpoint |
getConfig(io.undertow.websockets.core.WebSocketChannel channel) |
Returns the
ConfiguredServerEndpoint which was used while create the WebSocketChannel . |
static void |
prepareUpgrade(javax.websocket.server.ServerEndpointConfig config,
io.undertow.websockets.spi.WebSocketHttpExchange exchange) |
Prepare for upgrade
|
static void |
setConfig(io.undertow.websockets.core.WebSocketChannel channel,
ConfiguredServerEndpoint config) |
Set the
ConfiguredServerEndpoint which is used to create the WebSocketChannel . |
public static final io.undertow.util.AttachmentKey<java.util.Map<java.lang.String,java.lang.String>> PATH_PARAMS
public static final io.undertow.util.AttachmentKey<java.security.Principal> PRINCIPAL
public static boolean checkOrigin(javax.websocket.server.ServerEndpointConfig config, io.undertow.websockets.spi.WebSocketHttpExchange exchange)
public static void prepareUpgrade(javax.websocket.server.ServerEndpointConfig config, io.undertow.websockets.spi.WebSocketHttpExchange exchange)
public static void setConfig(io.undertow.websockets.core.WebSocketChannel channel, ConfiguredServerEndpoint config)
ConfiguredServerEndpoint
which is used to create the WebSocketChannel
.public static ConfiguredServerEndpoint getConfig(io.undertow.websockets.core.WebSocketChannel channel)
ConfiguredServerEndpoint
which was used while create the WebSocketChannel
.Copyright © 2018. All rights reserved.