Class WsHandshakeRequest
java.lang.Object
org.apache.tomcat.websocket.server.WsHandshakeRequest
- All Implemented Interfaces:
HandshakeRequest
Represents the request that this session was opened under.
-
Field Summary
Fields inherited from interface javax.websocket.server.HandshakeRequest
SEC_WEBSOCKET_EXTENSIONS, SEC_WEBSOCKET_KEY, SEC_WEBSOCKET_PROTOCOL, SEC_WEBSOCKET_VERSION
-
Constructor Summary
ConstructorDescriptionWsHandshakeRequest
(HttpServletRequest request, Map<String, String> pathParams) -
Method Summary
Modifier and TypeMethodDescriptionGet the HTTP Session object associated with this request.boolean
isUserInRole
(String role)
-
Constructor Details
-
WsHandshakeRequest
-
-
Method Details
-
getRequestURI
- Specified by:
getRequestURI
in interfaceHandshakeRequest
-
getParameterMap
- Specified by:
getParameterMap
in interfaceHandshakeRequest
-
getQueryString
- Specified by:
getQueryString
in interfaceHandshakeRequest
-
getUserPrincipal
- Specified by:
getUserPrincipal
in interfaceHandshakeRequest
-
getHeaders
- Specified by:
getHeaders
in interfaceHandshakeRequest
-
isUserInRole
- Specified by:
isUserInRole
in interfaceHandshakeRequest
-
getHttpSession
Description copied from interface:javax.websocket.server.HandshakeRequest
Get the HTTP Session object associated with this request. Object is used to avoid a direct dependency on the Servlet API.- Specified by:
getHttpSession
in interfaceHandshakeRequest
- Returns:
- The javax.servlet.http.HttpSession object associated with this request, if any.
-