Modifier and Type | Field and Description |
---|---|
public static final String | SEC_WEBSOCKET_EXTENSIONS
The Sec-WebSocket-Extensions header name |
public static final String | SEC_WEBSOCKET_KEY
The Sec-WebSocket-Key header name |
public static final String | SEC_WEBSOCKET_PROTOCOL
The Sec-WebSocket-Protocol header name |
public static final String | SEC_WEBSOCKET_VERSION
The Sec-WebSocket-Version header name |
Modifier and Type | Method and Description |
---|---|
public Map | Returns: the list of headers.Return the read only map of HTTP headers to header values that came with the handshake request. |
public Object | Returns: the http session ornull 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.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. |
public Map | Returns: the unmodifiable map of the request parameters.Return the request parameters associated with the request. |
public String | |
public URI | Returns: the request uri of the handshake request.Return the request URI of the handshake request. |
public Principal | Returns: the user principal.Return the authenticated user or |
public boolean | Returns: whether the authenticated user is in the role, or false if the user has not been authenticated.the role being checked. role)Checks whether the current user is in the given role. |
SEC_WEBSOCKET_EXTENSIONS | back to summary |
---|---|
public static final String SEC_WEBSOCKET_EXTENSIONS The Sec-WebSocket-Extensions header name |
SEC_WEBSOCKET_KEY | back to summary |
---|---|
public static final String SEC_WEBSOCKET_KEY The Sec-WebSocket-Key header name |
SEC_WEBSOCKET_PROTOCOL | back to summary |
---|---|
public static final String SEC_WEBSOCKET_PROTOCOL The Sec-WebSocket-Protocol header name |
SEC_WEBSOCKET_VERSION | back to summary |
---|---|
public static final String SEC_WEBSOCKET_VERSION The Sec-WebSocket-Version header name |
getHeaders | back to summary |
---|---|
public Map Return the read only map of HTTP headers to header values that came with the handshake request. Note that the lookup of header names will be performed in a case insensitive manner. |
getHttpSession | back to summary |
---|---|
public 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.
|
getParameterMap | back to summary |
---|---|
public Map Return the request parameters associated with the request. |
getQueryString | back to summary |
---|---|
public String getQueryString() Return the query string associated with the request.
|
getRequestURI | back to summary |
---|---|
public URI getRequestURI() Return the request URI of the handshake request.
|
getUserPrincipal | back to summary |
---|---|
public Principal getUserPrincipal() Return the authenticated user or
|
isUserInRole | back to summary |
---|---|
public boolean isUserInRole(String role) Checks whether the current user is in the given role. Roles and role membership can be defined using deployment
descriptors of the containing WAR file, if running in a Java EE web container. If the user has not been
authenticated, the method returns
|