Class ExchangeHandshakeRequest

  • All Implemented Interfaces:
    jakarta.websocket.server.HandshakeRequest

    public final class ExchangeHandshakeRequest
    extends Object
    implements jakarta.websocket.server.HandshakeRequest
    HandshakeRequest which wraps a WebSocketHttpExchange to act on it.
    Author:
    Norman Maurer
    • Method Detail

      • getHeaders

        public Map<String,​List<String>> getHeaders()
        Specified by:
        getHeaders in interface jakarta.websocket.server.HandshakeRequest
      • getUserPrincipal

        public Principal getUserPrincipal()
        Specified by:
        getUserPrincipal in interface jakarta.websocket.server.HandshakeRequest
      • getRequestURI

        public URI getRequestURI()
        Specified by:
        getRequestURI in interface jakarta.websocket.server.HandshakeRequest
      • isUserInRole

        public boolean isUserInRole​(String role)
        Specified by:
        isUserInRole in interface jakarta.websocket.server.HandshakeRequest
      • getHttpSession

        public Object getHttpSession()
        Specified by:
        getHttpSession in interface jakarta.websocket.server.HandshakeRequest
      • getParameterMap

        public Map<String,​List<String>> getParameterMap()
        Specified by:
        getParameterMap in interface jakarta.websocket.server.HandshakeRequest
      • getQueryString

        public String getQueryString()
        Specified by:
        getQueryString in interface jakarta.websocket.server.HandshakeRequest