|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.glassfish.tyrus.WithProperties
org.glassfish.tyrus.server.TyrusServerContainer
public class TyrusServerContainer
Server Container Implementation.
| Constructor Summary | |
|---|---|
TyrusServerContainer(TyrusServer server,
String contextPath,
ServerConfiguration configuration)
|
|
| Method Summary | |
|---|---|
void |
connectToServer(Object endpoint,
URI path)
Connect the supplied annotated object to its server using the supplied handshake parameters. |
Set<Session> |
getActiveSessions()
Return a copy of the Set of the currently active web socket sessions. |
Set<String> |
getInstalledExtensions()
Return the set of Extensions installed in the container. |
long |
getMaxBinaryMessageBufferSize()
Returns the maximum size of binary message that this container will buffer. |
long |
getMaxSessionIdleTimeout()
Return the maximum time in milliseconds that a web socket session may be idle before the container may close it. |
long |
getMaxTextMessageBufferSize()
Sets the maximum size of text message that this container will buffer. |
void |
publishServer(Class<? extends Endpoint> endpointClass)
Publish the given endpoint with the provided configuration information. |
void |
setMaxBinaryMessageBufferSize(long max)
Sets the maximum size of binary message that this container will buffer. |
void |
setMaxSessionIdleTimeout(long timeout)
Sets the maximum time that a web socket session may be idle before the container may close it. |
void |
setMaxTextMessageBufferSize(long max)
Sets the maximum size of text message that this container will buffer. |
void |
start()
|
void |
stop()
|
| Methods inherited from class org.glassfish.tyrus.WithProperties |
|---|
getProperties |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TyrusServerContainer(TyrusServer server,
String contextPath,
ServerConfiguration configuration)
| Method Detail |
|---|
public void start()
throws IOException
IOExceptionpublic void stop()
public void publishServer(Class<? extends Endpoint> endpointClass)
throws DeploymentException
ServerContainer
publishServer in interface ServerContainerendpointClass - the class of the endpoint to be deployed.
to deploy the endpoint.
DeploymentException
public void connectToServer(Object endpoint,
URI path)
throws DeploymentException
ClientContainerWebSocketEndpoint annotation.
connectToServer in interface ClientContainerendpoint - either subclass of Endpoint or a POJO annotated with WebSocketClient annotation.path - the complete path to the server endpoint
DeploymentExceptionpublic Set<Session> getActiveSessions()
ClientContainer
getActiveSessions in interface ClientContainerpublic long getMaxSessionIdleTimeout()
ClientContainer
getMaxSessionIdleTimeout in interface ClientContainerpublic void setMaxSessionIdleTimeout(long timeout)
ClientContainer
setMaxSessionIdleTimeout in interface ClientContainertimeout - the maximum time in milliseconds.public long getMaxBinaryMessageBufferSize()
ClientContainer
getMaxBinaryMessageBufferSize in interface ClientContainerpublic void setMaxBinaryMessageBufferSize(long max)
ClientContainer
setMaxBinaryMessageBufferSize in interface ClientContainermax - the maximum size of binary message in number of bytespublic long getMaxTextMessageBufferSize()
ClientContainer
getMaxTextMessageBufferSize in interface ClientContainerpublic void setMaxTextMessageBufferSize(long max)
ClientContainer
setMaxTextMessageBufferSize in interface ClientContainermax - the maximum size of text message in number of bytespublic Set<String> getInstalledExtensions()
ClientContainer
getInstalledExtensions in interface ClientContainer
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||