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
ConstructorsConstructorDescriptionWsHandshakeRequest(HttpServletRequest request, Map<String, String> pathParams) -
Method Summary
Modifier and TypeMethodDescriptionGet the HTTP Session object associated with this request.booleanisUserInRole(String role)
-
Constructor Details
-
WsHandshakeRequest
-
-
Method Details
-
getRequestURI
- Specified by:
getRequestURIin interfaceHandshakeRequest
-
getParameterMap
- Specified by:
getParameterMapin interfaceHandshakeRequest
-
getQueryString
- Specified by:
getQueryStringin interfaceHandshakeRequest
-
getUserPrincipal
- Specified by:
getUserPrincipalin interfaceHandshakeRequest
-
getHeaders
- Specified by:
getHeadersin interfaceHandshakeRequest
-
isUserInRole
- Specified by:
isUserInRolein interfaceHandshakeRequest
-
getHttpSession
Description copied from interface:javax.websocket.server.HandshakeRequestGet the HTTP Session object associated with this request. Object is used to avoid a direct dependency on the Servlet API.- Specified by:
getHttpSessionin interfaceHandshakeRequest- Returns:
- The javax.servlet.http.HttpSession object associated with this request, if any.
-