Example usage for Java javax.websocket Session fields, constructors, methods, implement or subclass
The text is from its open source code.
void | addMessageHandler(MessageHandler handler) Registers a MessageHandler for incoming messages. |
void | close() Close the connection to the remote end point using the code javax.websocket.CloseReason.CloseCodes#NORMAL_CLOSURE and an empty reason phrase. |
void | close(CloseReason closeReason) Close the connection to the remote end point using the specified code and reason phrase. |
boolean | equals(Object obj) Indicates whether some other object is "equal to" this one. |
RemoteEndpoint.Async | getAsyncRemote() |
RemoteEndpoint.Basic | getBasicRemote() |
String | getId() Provides a unique identifier for the session. |
Set | getOpenSessions() Obtain the set of open sessions associated with the same local endpoint as this session. |
Map | getPathParameters() |
String | getQueryString() |
Map | getRequestParameterMap() |
URI | getRequestURI() |
Principal | getUserPrincipal() |
Map | getUserProperties() |
boolean | isOpen() |
void | removeMessageHandler(MessageHandler listener) |
void | setMaxBinaryMessageBufferSize(int max) Set the current maximum buffer size for binary messages. |
void | setMaxIdleTimeout(long timeout) Set the idle timeout for this session. |
void | setMaxTextMessageBufferSize(int max) Set the maximum buffer size for text messages. |