public final class ExchangeHandshakeRequest extends Object implements javax.websocket.server.HandshakeRequest
HandshakeRequest
which wraps a WebSocketHttpExchange
to act on it.Constructor and Description |
---|
ExchangeHandshakeRequest(WebSocketHttpExchange exchange) |
Modifier and Type | Method and Description |
---|---|
Map<String,List<String>> | getHeaders() |
Object | getHttpSession() |
Map<String,List<String>> | getParameterMap() |
String | getQueryString() |
URI | getRequestURI() |
Principal | getUserPrincipal() |
boolean | isUserInRole(String role) |
public ExchangeHandshakeRequest(WebSocketHttpExchange exchange)
public Map<String,List<String>> getHeaders()
getHeaders
in interface javax.websocket.server.HandshakeRequest
public Principal getUserPrincipal()
getUserPrincipal
in interface javax.websocket.server.HandshakeRequest
public URI getRequestURI()
getRequestURI
in interface javax.websocket.server.HandshakeRequest
public boolean isUserInRole(String role)
isUserInRole
in interface javax.websocket.server.HandshakeRequest
public Object getHttpSession()
getHttpSession
in interface javax.websocket.server.HandshakeRequest
public Map<String,List<String>> getParameterMap()
getParameterMap
in interface javax.websocket.server.HandshakeRequest
public String getQueryString()
getQueryString
in interface javax.websocket.server.HandshakeRequest
Copyright © 2015 JBoss by Red Hat. All rights reserved.