| Modifier and Type | Method and Description |
|---|---|
| public Session | |
| public Session | |
| public Session | Returns: The WebSocket session for the connectionThe endpoint instance that will handle responses from the server endpoint, ClientEndpointConfig Used to configure the new connection clientEndpointConfiguration, URI The full URL of the WebSocket endpoint to connect to path)Creates a new connection to the WebSocket. |
| public Session | Returns: The WebSocket session for the connectionAn instance of this class will be created to handle responses from the server endpoint, ClientEndpointConfig Used to configure the new connection clientEndpointConfiguration, URI The full URL of the WebSocket endpoint to connect to path)Creates a new connection to the WebSocket. |
| public long | Returns: The current default timeout in milliseconds. A non-positive value means an infinite timeout.Get the default timeout for sending a message asynchronously. |
| public int | Returns: The current default maximum buffer size in bytesGet the default maximum buffer size for binary messages. |
| public long | Returns: The current default session idle timeout in milliseconds. Zero or negative values indicate an infinite timeout.Get the current default session idle timeout. |
| public int | Returns: The current default maximum buffer size in charactersGet the default maximum buffer size for text messages. |
| public Set | Returns: The set of extensions that are supported by this WebSocket implementation.Get the installed extensions. |
| public void | setAsyncSendTimeout(long
The new default timeout in milliseconds. A non-positive value means an infinite timeout. timeout)Set the default timeout for sending a message asynchronously. |
| public void | setDefaultMaxBinaryMessageBufferSize(int
The new default maximum buffer size in bytes max)Set the default maximum buffer size for binary messages. |
| public void | setDefaultMaxSessionIdleTimeout(long
The new default session idle timeout in milliseconds. Zero or negative values indicate an infinite
timeout. timeout)Set the default session idle timeout. |
| public void | setDefaultMaxTextMessageBufferSize(int
The new default maximum buffer size in characters max)Set the default maximum buffer size for text messages. |
| connectToServer | back to summary |
|---|---|
| public Session connectToServer(Object endpoint, URI path) throws DeploymentException, IOException | |
| connectToServer | back to summary |
|---|---|
| public Session connectToServer(Class<?> annotatedEndpointClass, URI path) throws DeploymentException, IOException | |
| connectToServer | back to summary |
|---|---|
| public Session connectToServer(Endpoint endpoint, ClientEndpointConfig clientEndpointConfiguration, URI path) throws DeploymentException, IOException Creates a new connection to the WebSocket.
| |
| connectToServer | back to summary |
|---|---|
| public Session connectToServer(Class<? extends Endpoint> endpoint, ClientEndpointConfig clientEndpointConfiguration, URI path) throws DeploymentException, IOException Creates a new connection to the WebSocket.
| |
| getDefaultAsyncSendTimeout | back to summary |
|---|---|
| public long getDefaultAsyncSendTimeout() Get the default timeout for sending a message asynchronously.
| |
| getDefaultMaxBinaryMessageBufferSize | back to summary |
|---|---|
| public int getDefaultMaxBinaryMessageBufferSize() Get the default maximum buffer size for binary messages.
| |
| getDefaultMaxSessionIdleTimeout | back to summary |
|---|---|
| public long getDefaultMaxSessionIdleTimeout() Get the current default session idle timeout.
| |
| getDefaultMaxTextMessageBufferSize | back to summary |
|---|---|
| public int getDefaultMaxTextMessageBufferSize() Get the default maximum buffer size for text messages.
| |
| getInstalledExtensions | back to summary |
|---|---|
| public Set Get the installed extensions. | |
| setAsyncSendTimeout | back to summary |
|---|---|
| public void setAsyncSendTimeout(long timeout) Set the default timeout for sending a message asynchronously.
| |
| setDefaultMaxBinaryMessageBufferSize | back to summary |
|---|---|
| public void setDefaultMaxBinaryMessageBufferSize(int max) Set the default maximum buffer size for binary messages.
| |
| setDefaultMaxSessionIdleTimeout | back to summary |
|---|---|
| public void setDefaultMaxSessionIdleTimeout(long timeout) Set the default session idle timeout.
| |
| setDefaultMaxTextMessageBufferSize | back to summary |
|---|---|
| public void setDefaultMaxTextMessageBufferSize(int max) Set the default maximum buffer size for text messages.
| |