| Modifier and Type | Method and Description |
|---|---|
| public void | addMessageHandler(MessageHandler
The message handler for a incoming message handler)Registers a |
| public < The type of message that the given handler is intended for T> void | addMessageHandler(Class<T>
The Class that implements T clazz, MessageHandler.The message handler for a incoming message handlerRegisters a |
| public < The type of message that the given handler is intended for T> void | addMessageHandler(Class<T>
The Class that implements T clazz, MessageHandler.The message handler for a incoming message handlerRegisters a |
| public void | close()
Redeclares java. Close the connection to the remote end point using the code
|
| public void | close(CloseReason
The reason the WebSocket session is being closed. closeReason)Close the connection to the remote end point using the specified code and reason phrase. |
| public RemoteEndpoint. | |
| public RemoteEndpoint. | |
| public WebSocketContainer | Returns: the container that created this session.Get the container that created this session. |
| public String | |
| public int | Returns: The current maximum buffer size in bytesGet the current maximum buffer size for binary messages. |
| public long | Returns: The current idle timeout for this session in milliseconds. Zero or negative values indicate an infinite timeout.Get the idle timeout for this session. |
| public int | Returns: The maximum buffer size in characters.Get the maximum buffer size for text messages. |
| public Set | |
| public List | |
| public String | |
| public Set | Returns: The set of currently open sessions for the local endpoint that this session is associated with.Obtain the set of open sessions associated with the same local endpoint as this session. |
| public Map | |
| public String | |
| public String | |
| public Map | |
| public URI | |
| public Principal | |
| public Map | |
| public boolean | |
| public boolean | |
| public void | |
| public void | setMaxBinaryMessageBufferSize(int
The new maximum buffer size in bytes max)Set the current maximum buffer size for binary messages. |
| public void | setMaxIdleTimeout(long
The new idle timeout for this session in milliseconds. Zero or negative values indicate an
infinite timeout. timeout)Set the idle timeout for this session. |
| public void | setMaxTextMessageBufferSize(int
The new maximum buffer size in characters. max)Set the maximum buffer size for text messages. |
| addMessageHandler | back to summary |
|---|---|
| public void addMessageHandler(MessageHandler handler) throws IllegalStateException Registers a
| |
| addMessageHandler | back to summary |
|---|---|
| public <T> void addMessageHandler(Class<T> clazz, MessageHandler. Registers a
| |
| addMessageHandler | back to summary |
|---|---|
| public <T> void addMessageHandler(Class<T> clazz, MessageHandler. Registers a
| |
| close | back to summary |
|---|---|
| public void close() throws IOException Redeclares java. Close the connection to the remote end point using the code
| |
| close | back to summary |
|---|---|
| public void close(CloseReason closeReason) throws IOException Close the connection to the remote end point using the specified code and reason phrase.
| |
| getAsyncRemote | back to summary |
|---|---|
| public RemoteEndpoint. | |
| getBasicRemote | back to summary |
|---|---|
| public RemoteEndpoint. | |
| getContainer | back to summary |
|---|---|
| public WebSocketContainer getContainer() Get the container that created this session.
| |
| getId | back to summary |
|---|---|
| public String getId() Provides a unique identifier for the session. This identifier should not be relied upon to be generated from a secure random source.
| |
| getMaxBinaryMessageBufferSize | back to summary |
|---|---|
| public int getMaxBinaryMessageBufferSize() Get the current maximum buffer size for binary messages.
| |
| getMaxIdleTimeout | back to summary |
|---|---|
| public long getMaxIdleTimeout() Get the idle timeout for this session.
| |
| getMaxTextMessageBufferSize | back to summary |
|---|---|
| public int getMaxTextMessageBufferSize() Get the maximum buffer size for text messages.
| |
| getMessageHandlers | back to summary |
|---|---|
| public Set | |
| getNegotiatedExtensions | back to summary |
|---|---|
| public List | |
| getNegotiatedSubprotocol | back to summary |
|---|---|
| public String getNegotiatedSubprotocol() | |
| getOpenSessions | back to summary |
|---|---|
| public Set Obtain the set of open sessions associated with the same local endpoint as this session. | |
| getPathParameters | back to summary |
|---|---|
| public Map | |
| getProtocolVersion | back to summary |
|---|---|
| public String getProtocolVersion() | |
| getQueryString | back to summary |
|---|---|
| public String getQueryString() | |
| getRequestParameterMap | back to summary |
|---|---|
| public Map | |
| getRequestURI | back to summary |
|---|---|
| public URI getRequestURI() | |
| getUserPrincipal | back to summary |
|---|---|
| public Principal getUserPrincipal() | |
| getUserProperties | back to summary |
|---|---|
| public Map | |
| isOpen | back to summary |
|---|---|
| public boolean isOpen() | |
| isSecure | back to summary |
|---|---|
| public boolean isSecure() | |
| removeMessageHandler | back to summary |
|---|---|
| public void removeMessageHandler(MessageHandler listener) | |
| setMaxBinaryMessageBufferSize | back to summary |
|---|---|
| public void setMaxBinaryMessageBufferSize(int max) Set the current maximum buffer size for binary messages.
| |
| setMaxIdleTimeout | back to summary |
|---|---|
| public void setMaxIdleTimeout(long timeout) Set the idle timeout for this session.
| |
| setMaxTextMessageBufferSize | back to summary |
|---|---|
| public void setMaxTextMessageBufferSize(int max) Set the maximum buffer size for text messages.
| |