Class HandshakeUtil


  • public final class HandshakeUtil
    extends Object
    Internal util class for handshaking
    Author:
    Norman Maurer
    • Field Detail

      • 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 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