Class WsHandshakeRequest

  • All Implemented Interfaces:
    HandshakeRequest

    public class WsHandshakeRequest
    extends java.lang.Object
    implements HandshakeRequest
    Represents the request that this session was opened under.
    • Constructor Summary

      Constructors 
      Constructor Description
      WsHandshakeRequest​(HttpServletRequest request, java.util.Map<java.lang.String,​java.lang.String> pathParams)
      Constructs a new WsHandshakeRequest.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.Map<java.lang.String,​java.util.List<java.lang.String>> getHeaders()
      Returns the HTTP headers from the handshake request.
      java.lang.Object getHttpSession()
      Get the HTTP Session object associated with this request.
      java.util.Map<java.lang.String,​java.util.List<java.lang.String>> getParameterMap()
      Returns the query parameters from the handshake request.
      java.lang.String getQueryString()
      Returns the query string from the handshake request.
      java.net.URI getRequestURI()
      Returns the URI of the handshake request.
      java.security.Principal getUserPrincipal()
      Returns the principal of the user associated with this request, or null if the user is not authenticated.
      boolean isUserInRole​(java.lang.String role)
      Returns whether the user associated with this request is in the given role.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • WsHandshakeRequest

        public WsHandshakeRequest​(HttpServletRequest request,
                                  java.util.Map<java.lang.String,​java.lang.String> pathParams)
        Constructs a new WsHandshakeRequest.
        Parameters:
        request - The HTTP servlet request
        pathParams - The path parameters