|
||||||||||
| 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(Endpoint endpoint,
ClientEndpointConfiguration olc)
Connect the supplied endpoint to its server using the supplied handshake parameters |
Set<Session> |
getActiveSessions()
Return a copy of the Set of the currently active web socket sessions. |
ServerConfiguration |
getConfiguration()
Returns server configuration object that can be used to register endpoints and set other configuration parameters. |
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 seconds 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(Endpoint endpoint,
ServerEndpointConfiguration ilc)
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()
Starts the server and deploys all the endpoints configured in the corresponding ServerConfiguration. |
void |
stop()
Attempts to stops the server (for some containers, such as servlet, which don't support stopping, this may be a no-op). |
| 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 ServerConfiguration getConfiguration()
ServerContainer
public void start()
throws IOException
ServerContainerServerConfiguration.
IOException - if something goes wrong.public void stop()
ServerContainer
public void publishServer(Endpoint endpoint,
ServerEndpointConfiguration ilc)
ServerContainer
publishServer in interface ServerContainerendpoint - the endpoint to be deployed.ilc - the endpoint configuration that the runtime should use
to deploy the endpoint.
public void connectToServer(Endpoint endpoint,
ClientEndpointConfiguration olc)
ClientContainer
connectToServer in interface ClientContainerendpoint - the endpoint which will be connected to the serverolc - the client configuration used to connect the clientpublic Set<Session> getActiveSessions()
ClientContainer
getActiveSessions in interface ClientContainerpublic long getMaxSessionIdleTimeout()
ClientContainer
getMaxSessionIdleTimeout in interface ClientContainerpublic void setMaxSessionIdleTimeout(long timeout)
ClientContainer
setMaxSessionIdleTimeout in interface ClientContainerpublic long getMaxBinaryMessageBufferSize()
ClientContainer
getMaxBinaryMessageBufferSize in interface ClientContainerpublic void setMaxBinaryMessageBufferSize(long max)
ClientContainer
setMaxBinaryMessageBufferSize in interface ClientContainerpublic long getMaxTextMessageBufferSize()
ClientContainer
getMaxTextMessageBufferSize in interface ClientContainerpublic void setMaxTextMessageBufferSize(long max)
ClientContainer
setMaxTextMessageBufferSize in interface ClientContainerpublic Set<String> getInstalledExtensions()
ClientContainer
getInstalledExtensions in interface ClientContainer
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||