public class WsHandshakeRequest extends java.lang.Object implements HandshakeRequest
SEC_WEBSOCKET_EXTENSIONS, SEC_WEBSOCKET_KEY, SEC_WEBSOCKET_PROTOCOL, SEC_WEBSOCKET_VERSION
Constructor and Description |
---|
WsHandshakeRequest(HttpServletRequest request,
java.util.Map<java.lang.String,java.lang.String> pathParams) |
Modifier and Type | Method and Description |
---|---|
java.util.Map<java.lang.String,java.util.List<java.lang.String>> |
getHeaders() |
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() |
java.lang.String |
getQueryString() |
java.net.URI |
getRequestURI() |
java.security.Principal |
getUserPrincipal() |
boolean |
isUserInRole(java.lang.String role) |
public WsHandshakeRequest(HttpServletRequest request, java.util.Map<java.lang.String,java.lang.String> pathParams)
public java.net.URI getRequestURI()
getRequestURI
in interface HandshakeRequest
public java.util.Map<java.lang.String,java.util.List<java.lang.String>> getParameterMap()
getParameterMap
in interface HandshakeRequest
public java.lang.String getQueryString()
getQueryString
in interface HandshakeRequest
public java.security.Principal getUserPrincipal()
getUserPrincipal
in interface HandshakeRequest
public java.util.Map<java.lang.String,java.util.List<java.lang.String>> getHeaders()
getHeaders
in interface HandshakeRequest
public boolean isUserInRole(java.lang.String role)
isUserInRole
in interface HandshakeRequest
public java.lang.Object getHttpSession()
javax.websocket.server.HandshakeRequest
getHttpSession
in interface HandshakeRequest
Copyright © 2000-2018 Apache Software Foundation. All Rights Reserved.