public class ServerContainerImpl extends Object implements ServerContainer
| Constructor and Description |
|---|
ServerContainerImpl(BeanServer beanServer,
String wsPath,
int port) |
| Modifier and Type | Method and Description |
|---|---|
void |
connectToServer(Endpoint endpoint,
ClientEndpointConfiguration clientEndpointConfiguration)
Connect the supplied endpoint to its server using the supplied handshake
parameters
|
Set<Session> |
getActiveSessions()
Return an unordered collection of the currently active web socket sessions.
|
ClassLoader |
getApplicationLevelClassLoader() |
Set<Extension> |
getInstalledExtensions()
Return the set of Extensions installed in the container.
|
long |
getMaxBinaryMessageBufferSize()
Returns the maximum size of binary message in number of bytes that this container
will buffer.
|
long |
getMaxSessionIdleTimeout()
Return the maximum time in seconds that a web socket session may be idle before
the container may close it.
|
long |
getMaxTextMessageBufferSize()
Sets the maximum size of text message in number of bytes that this container
will buffer.
|
String |
getPath() |
int |
getPort() |
void |
publishServer(Endpoint endpoint,
ServerEndpointConfiguration serverEndpointConfiguration)
Publish the given endpoint with the provided configuration
information.
|
void |
setApplicationLevelClassLoader(ClassLoader applicationLevelClassLoader) |
void |
setMaxBinaryMessageBufferSize(long max)
Sets the maximum size of binary message in number of bytes that this container
will buffer.
|
void |
setMaxSessionIdleTimeout(long timeout)
Sets the maximum time in seconds that a web socket session may be idle before
the container may close it.
|
void |
setMaxTextMessageBufferSize(long max)
Returns the maximum size of text message in number of bytes that this container
will buffer.
|
String |
toString() |
Map<String,Object> |
XgetProperties() |
public ServerContainerImpl(BeanServer beanServer, String wsPath, int port)
public void setApplicationLevelClassLoader(ClassLoader applicationLevelClassLoader)
public ClassLoader getApplicationLevelClassLoader()
public String getPath()
public int getPort()
public void publishServer(Endpoint endpoint, ServerEndpointConfiguration serverEndpointConfiguration)
ServerContainerpublishServer in interface ServerContainerendpoint - the endpoint to be deployed.serverEndpointConfiguration - the endpoint configuration that the runtime should use
to deploy the endpoint.public void connectToServer(Endpoint endpoint, ClientEndpointConfiguration clientEndpointConfiguration)
ClientContainerconnectToServer in interface ClientContainerendpoint - the endpoint which will be connected to the serverclientEndpointConfiguration - the client configuration used to connect the clientpublic Set<Session> getActiveSessions()
getActiveSessions in interface ClientContainerpublic long getMaxSessionIdleTimeout()
getMaxSessionIdleTimeout in interface ClientContainerpublic void setMaxSessionIdleTimeout(long timeout)
setMaxSessionIdleTimeout in interface ClientContainerpublic long getMaxBinaryMessageBufferSize()
getMaxBinaryMessageBufferSize in interface ClientContainerpublic void setMaxBinaryMessageBufferSize(long max)
setMaxBinaryMessageBufferSize in interface ClientContainerpublic long getMaxTextMessageBufferSize()
getMaxTextMessageBufferSize in interface ClientContainerpublic void setMaxTextMessageBufferSize(long max)
setMaxTextMessageBufferSize in interface ClientContainerpublic Set<Extension> getInstalledExtensions()
ClientContainergetInstalledExtensions in interface ClientContainerCopyright © 2012. All Rights Reserved.