public interface WebSocketContainer
Modifier and Type | Method and Description |
---|---|
Session |
connectToServer(java.lang.Class<?> annotatedEndpointClass,
java.net.URI path) |
Session |
connectToServer(java.lang.Class<? extends Endpoint> endpoint,
ClientEndpointConfig clientEndpointConfiguration,
java.net.URI path)
Creates a new connection to the WebSocket.
|
Session |
connectToServer(Endpoint endpoint,
ClientEndpointConfig clientEndpointConfiguration,
java.net.URI path)
Creates a new connection to the WebSocket.
|
Session |
connectToServer(java.lang.Object endpoint,
java.net.URI path) |
long |
getDefaultAsyncSendTimeout()
Obtain the default timeout (in milliseconds) for sending a message
asynchronously.
|
int |
getDefaultMaxBinaryMessageBufferSize()
Get the default maximum buffer size (in bytes) for binary messages.
|
long |
getDefaultMaxSessionIdleTimeout()
Get the current default session idle timeout in milliseconds.
|
int |
getDefaultMaxTextMessageBufferSize()
Get the default maximum buffer size (in characters) for text messages.
|
java.util.Set<Extension> |
getInstalledExtensions()
Get the set of extensions that are supported by this WebSocket
implementation.
|
void |
setAsyncSendTimeout(long timeout)
Set the default timeout (in milliseconds) for sending a message
asynchronously.
|
void |
setDefaultMaxBinaryMessageBufferSize(int max)
Set the default maximum buffer size (in bytes) for binary messages.
|
void |
setDefaultMaxSessionIdleTimeout(long timeout)
Set the current default session idle timeout in milliseconds.
|
void |
setDefaultMaxTextMessageBufferSize(int max)
Set the default maximum buffer size (in characters) for text messages.
|
long getDefaultAsyncSendTimeout()
void setAsyncSendTimeout(long timeout)
Session connectToServer(java.lang.Object endpoint, java.net.URI path) throws DeploymentException, java.io.IOException
DeploymentException
java.io.IOException
Session connectToServer(java.lang.Class<?> annotatedEndpointClass, java.net.URI path) throws DeploymentException, java.io.IOException
DeploymentException
java.io.IOException
Session connectToServer(Endpoint endpoint, ClientEndpointConfig clientEndpointConfiguration, java.net.URI path) throws DeploymentException, java.io.IOException
endpoint
- The endpoint instance that will handle responses from the
serverclientEndpointConfiguration
- Used to configure the new connectionpath
- The full URL of the WebSocket endpoint to connect toDeploymentException
- If the connection can not be establishedjava.io.IOException
Session connectToServer(java.lang.Class<? extends Endpoint> endpoint, ClientEndpointConfig clientEndpointConfiguration, java.net.URI path) throws DeploymentException, java.io.IOException
endpoint
- An instance of this class will be created to handle responses
from the serverclientEndpointConfiguration
- Used to configure the new connectionpath
- The full URL of the WebSocket endpoint to connect toDeploymentException
- If the connection can not be establishedjava.io.IOException
long getDefaultMaxSessionIdleTimeout()
void setDefaultMaxSessionIdleTimeout(long timeout)
int getDefaultMaxBinaryMessageBufferSize()
void setDefaultMaxBinaryMessageBufferSize(int max)
int getDefaultMaxTextMessageBufferSize()
void setDefaultMaxTextMessageBufferSize(int max)
java.util.Set<Extension> getInstalledExtensions()
Copyright © 2000-2014 The Apache Software Foundation. All Rights Reserved.