public class WsHandshakeRequest extends Object implements HandshakeRequest
SEC_WEBSOCKET_EXTENSIONS, SEC_WEBSOCKET_KEY, SEC_WEBSOCKET_PROTOCOL, SEC_WEBSOCKET_VERSION
Constructor and Description |
---|
WsHandshakeRequest(HttpServletRequest request) |
Modifier and Type | Method and Description |
---|---|
Map<String,List<String>> |
getHeaders() |
Object |
getHttpSession()
Get the HTTP Session object associated with this request.
|
Map<String,List<String>> |
getParameterMap() |
String |
getQueryString() |
URI |
getRequestURI() |
Principal |
getUserPrincipal() |
boolean |
isUserInRole(String role) |
public WsHandshakeRequest(HttpServletRequest request)
public URI getRequestURI()
getRequestURI
in interface HandshakeRequest
public Map<String,List<String>> getParameterMap()
getParameterMap
in interface HandshakeRequest
public String getQueryString()
getQueryString
in interface HandshakeRequest
public Principal getUserPrincipal()
getUserPrincipal
in interface HandshakeRequest
public Map<String,List<String>> getHeaders()
getHeaders
in interface HandshakeRequest
public boolean isUserInRole(String role)
isUserInRole
in interface HandshakeRequest
public Object getHttpSession()
javax.websocket.server.HandshakeRequest
getHttpSession
in interface HandshakeRequest
Copyright © 2000-2014 Apache Software Foundation. All Rights Reserved.