public class ServerContainer extends ClientContainer implements ServerContainer
AbstractLifeCycle.AbstractLifeCycleListener
Container.InheritedListener, Container.Listener
LifeCycle.Listener
Constructor and Description |
---|
ServerContainer(MappedWebSocketCreator creator,
WebSocketServerFactory factory,
Executor executor) |
Modifier and Type | Method and Description |
---|---|
void |
addEndpoint(Class<?> endpointClass) |
void |
addEndpoint(ServerEndpointConfig config) |
void |
addEndpoint(ServerEndpointMetadata metadata) |
long |
getDefaultAsyncSendTimeout() |
int |
getDefaultMaxBinaryMessageBufferSize() |
long |
getDefaultMaxSessionIdleTimeout() |
int |
getDefaultMaxTextMessageBufferSize() |
ServerEndpointMetadata |
getServerEndpointMetadata(Class<?> endpoint,
ServerEndpointConfig config) |
EndpointInstance |
newClientEndpointInstance(Object endpoint,
ServerEndpointConfig config,
String path) |
void |
setAsyncSendTimeout(long ms) |
void |
setDefaultMaxBinaryMessageBufferSize(int max) |
void |
setDefaultMaxSessionIdleTimeout(long ms) |
void |
setDefaultMaxTextMessageBufferSize(int max) |
connectToServer, connectToServer, connectToServer, connectToServer, doStop, getClient, getClientEndpointMetadata, getDecoderFactory, getEncoderFactory, getInstalledExtensions, getOpenSessions, newClientEndpointInstance, onSessionClosed, onSessionOpened
addBean, addBean, addBean, addEventListener, addManaged, contains, destroy, doStart, dump, dump, dump, dump, dump, dumpBeans, dumpObject, dumpStdErr, dumpThis, getBean, getBeans, getBeans, isManaged, manage, removeBean, removeBeans, removeEventListener, setBeans, setStopTimeout, start, stop, unmanage, updateBean, updateBeans
addLifeCycleListener, getState, getState, getStopTimeout, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, start, stop
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
connectToServer, connectToServer, connectToServer, connectToServer, getInstalledExtensions
public ServerContainer(MappedWebSocketCreator creator, WebSocketServerFactory factory, Executor executor)
public EndpointInstance newClientEndpointInstance(Object endpoint, ServerEndpointConfig config, String path)
public void addEndpoint(Class<?> endpointClass) throws DeploymentException
addEndpoint
in interface ServerContainer
DeploymentException
public void addEndpoint(ServerEndpointMetadata metadata) throws DeploymentException
DeploymentException
public void addEndpoint(ServerEndpointConfig config) throws DeploymentException
addEndpoint
in interface ServerContainer
DeploymentException
public ServerEndpointMetadata getServerEndpointMetadata(Class<?> endpoint, ServerEndpointConfig config) throws DeploymentException
DeploymentException
public long getDefaultAsyncSendTimeout()
getDefaultAsyncSendTimeout
in interface WebSocketContainer
getDefaultAsyncSendTimeout
in class ClientContainer
public int getDefaultMaxBinaryMessageBufferSize()
getDefaultMaxBinaryMessageBufferSize
in interface WebSocketContainer
getDefaultMaxBinaryMessageBufferSize
in class ClientContainer
public long getDefaultMaxSessionIdleTimeout()
getDefaultMaxSessionIdleTimeout
in interface WebSocketContainer
getDefaultMaxSessionIdleTimeout
in class ClientContainer
public int getDefaultMaxTextMessageBufferSize()
getDefaultMaxTextMessageBufferSize
in interface WebSocketContainer
getDefaultMaxTextMessageBufferSize
in class ClientContainer
public void setAsyncSendTimeout(long ms)
setAsyncSendTimeout
in interface WebSocketContainer
setAsyncSendTimeout
in class ClientContainer
public void setDefaultMaxBinaryMessageBufferSize(int max)
setDefaultMaxBinaryMessageBufferSize
in interface WebSocketContainer
setDefaultMaxBinaryMessageBufferSize
in class ClientContainer
public void setDefaultMaxSessionIdleTimeout(long ms)
setDefaultMaxSessionIdleTimeout
in interface WebSocketContainer
setDefaultMaxSessionIdleTimeout
in class ClientContainer
public void setDefaultMaxTextMessageBufferSize(int max)
setDefaultMaxTextMessageBufferSize
in interface WebSocketContainer
setDefaultMaxTextMessageBufferSize
in class ClientContainer
Copyright © 1995-2015 Webtide. All Rights Reserved.