public final class HandshakeUtil extends Object
Modifier and Type | Field and Description |
---|---|
static AttachmentKey<Map<String,String>> |
PATH_PARAMS |
Modifier and Type | Method and Description |
---|---|
static boolean |
checkOrigin(javax.websocket.server.ServerEndpointConfig config,
WebSocketHttpExchange exchange)
Checks the orgin against the
|
static ConfiguredServerEndpoint |
getConfig(WebSocketChannel channel)
Returns the
ServerEndpointConfiguration which was used while create the WebSocketChannel . |
static void |
prepareUpgrade(javax.websocket.server.ServerEndpointConfig config,
WebSocketHttpExchange exchange)
Prepare for upgrade
|
static void |
setConfig(WebSocketChannel channel,
ConfiguredServerEndpoint config)
Set the
ServerEndpointConfiguration which is used to create the WebSocketChannel . |
public static final AttachmentKey<Map<String,String>> PATH_PARAMS
public static boolean checkOrigin(javax.websocket.server.ServerEndpointConfig config, WebSocketHttpExchange exchange)
public static void prepareUpgrade(javax.websocket.server.ServerEndpointConfig config, WebSocketHttpExchange exchange)
public static void setConfig(WebSocketChannel channel, ConfiguredServerEndpoint config)
ServerEndpointConfiguration
which is used to create the WebSocketChannel
.public static ConfiguredServerEndpoint getConfig(WebSocketChannel channel)
ServerEndpointConfiguration
which was used while create the WebSocketChannel
.Copyright © 2014 JBoss by Red Hat. All rights reserved.