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 Details

    • PATH_PARAMS

      public static final io.undertow.util.AttachmentKey<Map<String,String>> PATH_PARAMS
    • PRINCIPAL

      public static final io.undertow.util.AttachmentKey<Principal> PRINCIPAL
  • Method Details

    • 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 the ConfiguredServerEndpoint which is used to create the WebSocketChannel.
    • getConfig

      public static ConfiguredServerEndpoint getConfig(io.undertow.websockets.core.WebSocketChannel channel)
      Returns the ConfiguredServerEndpoint which was used while create the WebSocketChannel.