public interface HandshakeRequest
| Modifier and Type | Field and Description | 
|---|---|
| static java.lang.String | SEC_WEBSOCKET_EXTENSIONSThe Sec-WebSocket-Extensions header name | 
| static java.lang.String | SEC_WEBSOCKET_KEYThe Sec-WebSocket-Key header name | 
| static java.lang.String | SEC_WEBSOCKET_PROTOCOLThe Sec-WebSocket-Protocol header name | 
| static java.lang.String | SEC_WEBSOCKET_VERSIONThe Sec-WebSocket-Version header name | 
| Modifier and Type | Method and Description | 
|---|---|
| java.util.Map<java.lang.String,java.util.List<java.lang.String>> | getHeaders()Return the read only map of HTTP headers to header values that came with the handshake request. | 
| java.lang.Object | getHttpSession()Return a reference to the HttpSession that the web socket handshake that started this conversation was part of,
 if the implementation is part of a Java EE web container. | 
| java.util.Map<java.lang.String,java.util.List<java.lang.String>> | getParameterMap()Return the request parameters associated with the request. | 
| java.lang.String | getQueryString()Return the query string associated with the request. | 
| java.net.URI | getRequestURI()Return the request URI of the handshake request. | 
| java.security.Principal | getUserPrincipal()Return the authenticated user or  nullif no user is authenticated for this handshake. | 
| boolean | isUserInRole(java.lang.String role)Checks whether the current user is in the given role. | 
static final java.lang.String SEC_WEBSOCKET_KEY
static final java.lang.String SEC_WEBSOCKET_PROTOCOL
static final java.lang.String SEC_WEBSOCKET_VERSION
static final java.lang.String SEC_WEBSOCKET_EXTENSIONS
java.util.Map<java.lang.String,java.util.List<java.lang.String>> getHeaders()
java.security.Principal getUserPrincipal()
null if no user is authenticated for this handshake.java.net.URI getRequestURI()
boolean isUserInRole(java.lang.String role)
false.role - the role being checked.java.lang.Object getHttpSession()
null if either the websocket implementation is not part of a Java EE web
         container, or there is no HttpSession associated with the opening handshake request.java.util.Map<java.lang.String,java.util.List<java.lang.String>> getParameterMap()
java.lang.String getQueryString()
Copyright © 2012–2020 Oracle Corporation. All rights reserved.