class MockServerContainer
extends java.lang.Object
javax.websocket.server.ServerContainer interface.| Modifier and Type | Field and Description |
|---|---|
private long |
defaultAsyncSendTimeout |
private int |
defaultMaxBinaryMessageBufferSize |
private long |
defaultMaxSessionIdleTimeout |
private int |
defaultMaxTextMessageBufferSize |
| Constructor and Description |
|---|
MockServerContainer() |
| Modifier and Type | Method and Description |
|---|---|
void |
addEndpoint(java.lang.Class<?> endpointClass) |
void |
addEndpoint(ServerEndpointConfig serverConfig) |
Session |
connectToServer(java.lang.Class<?> annotatedEndpointClass,
java.net.URI path) |
Session |
connectToServer(java.lang.Class<? extends Endpoint> endpointClass,
ClientEndpointConfig cec,
java.net.URI path) |
Session |
connectToServer(Endpoint endpointInstance,
ClientEndpointConfig cec,
java.net.URI path) |
Session |
connectToServer(java.lang.Object annotatedEndpointInstance,
java.net.URI path) |
long |
getDefaultAsyncSendTimeout() |
int |
getDefaultMaxBinaryMessageBufferSize() |
long |
getDefaultMaxSessionIdleTimeout() |
int |
getDefaultMaxTextMessageBufferSize() |
java.util.Set<Extension> |
getInstalledExtensions() |
void |
setAsyncSendTimeout(long timeout) |
void |
setDefaultMaxBinaryMessageBufferSize(int max) |
void |
setDefaultMaxSessionIdleTimeout(long timeout) |
void |
setDefaultMaxTextMessageBufferSize(int max) |
private long defaultAsyncSendTimeout
private long defaultMaxSessionIdleTimeout
private int defaultMaxBinaryMessageBufferSize
private int defaultMaxTextMessageBufferSize
public long getDefaultAsyncSendTimeout()
public void setAsyncSendTimeout(long timeout)
public long getDefaultMaxSessionIdleTimeout()
public void setDefaultMaxSessionIdleTimeout(long timeout)
public int getDefaultMaxBinaryMessageBufferSize()
public void setDefaultMaxBinaryMessageBufferSize(int max)
public int getDefaultMaxTextMessageBufferSize()
public void setDefaultMaxTextMessageBufferSize(int max)
public java.util.Set<Extension> getInstalledExtensions()
public Session connectToServer(java.lang.Object annotatedEndpointInstance,
java.net.URI path)
throws DeploymentException,
java.io.IOException
DeploymentExceptionjava.io.IOExceptionpublic Session connectToServer(java.lang.Class<?> annotatedEndpointClass,
java.net.URI path)
throws DeploymentException,
java.io.IOException
DeploymentExceptionjava.io.IOExceptionpublic Session connectToServer(Endpoint endpointInstance,
ClientEndpointConfig cec,
java.net.URI path)
throws DeploymentException,
java.io.IOException
DeploymentExceptionjava.io.IOExceptionpublic Session connectToServer(java.lang.Class<? extends Endpoint> endpointClass,
ClientEndpointConfig cec,
java.net.URI path)
throws DeploymentException,
java.io.IOException
DeploymentExceptionjava.io.IOExceptionpublic void addEndpoint(java.lang.Class<?> endpointClass)
throws DeploymentException
DeploymentExceptionpublic void addEndpoint(ServerEndpointConfig serverConfig)
throws DeploymentException
DeploymentException