|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.glassfish.tyrus.client.ClientManager
public class ClientManager
ClientManager implementation.
| Method Summary | |
|---|---|
void |
connectToServer(Object o,
String url)
|
void |
connectToServer(Object endpoint,
URI uri)
Connect the supplied annotated object to its server using the supplied handshake parameters. |
static ClientManager |
createClient()
|
static ClientManager |
createClient(String engineProviderClassname)
Create new ClientManager instance. |
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 |
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static ClientManager createClient()
public static ClientManager createClient(String engineProviderClassname)
public void connectToServer(Object endpoint,
URI uri)
throws DeploymentException
ClientContainerWebSocketEndpoint annotation.
connectToServer in interface ClientContainerendpoint - either subclass of Endpoint or a POJO annotated with WebSocketClient annotation.uri - the complete path to the server endpoint
DeploymentException
public void connectToServer(Object o,
String url)
throws DeploymentException
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 | |||||||||