|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ClientContainer
A ClientContainer is an implementation provided object that allows the developer to initiate a web socket handshake from the provided endpoint.
| 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. |
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 |
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. |
| Method Detail |
|---|
void connectToServer(Endpoint endpoint,
ClientEndpointConfiguration olc)
throws ConnectException
endpoint - the endpoint which will be connected to the serverolc - the client configuration used to connect the client
ConnectExceptionSet<Session> getActiveSessions()
long getMaxSessionIdleTimeout()
void setMaxSessionIdleTimeout(long timeout)
the - maximum time in seconds.long getMaxBinaryMessageBufferSize()
void setMaxBinaryMessageBufferSize(long max)
the - maximum size of binary message in number of byteslong getMaxTextMessageBufferSize()
void setMaxTextMessageBufferSize(long max)
the - maximum size of text message in number of bytesSet<String> getInstalledExtensions()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||