|
WebSocket 1.0 - Apache Tomcat 7.0.47 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface WebSocketContainer
Method Summary | |
---|---|
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. |
Method Detail |
---|
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 to
DeploymentException
- If the connection can not be established
java.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 to
DeploymentException
- If the connection can not be established
java.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()
|
WebSocket 1.0 - Apache Tomcat 7.0.47 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |