|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface ServerConfiguration
Represents server configuration. Can be used to provide the list of registered endpoints, extensions, buffer limits, and timeouts to the server during its initialization. Once the server is initialized with this configuration, any modifications to the configuration may not be reflected in the running server.
| Nested Class Summary | |
|---|---|
static class |
ServerConfiguration.EndpointWithConfiguration
Representation of Endpoint-ServerEndpointConfiguration pair. |
| Method Summary | |
|---|---|
Set<Class<?>> |
getEndpointClasses()
Returns a set of endpoint classes annotated with WebSocketEndpoint
annotation that should be published by the container initialized with this configuration object. |
Set<ServerConfiguration.EndpointWithConfiguration> |
getEndpointInstances()
Returns a set of Endpoint instances that should be exposed by the server in addition to the
class-based endpoints returned from getEndpointClasses(). |
List<String> |
getExtensions()
Return a mutable list of extension names supported by 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()
Gets the maximum size of text message that this container will buffer. |
| Method Detail |
|---|
Set<Class<?>> getEndpointClasses()
WebSocketEndpoint
annotation that should be published by the container initialized with this configuration object.
Set<ServerConfiguration.EndpointWithConfiguration> getEndpointInstances()
Endpoint instances that should be exposed by the server in addition to the
class-based endpoints returned from getEndpointClasses(). The method returns the endpoint instances
together with their associated endpoint configurations wrapped in ServerConfiguration.EndpointWithConfiguration objects.
endpoint objects with their configurations.long getMaxSessionIdleTimeout()
long getMaxBinaryMessageBufferSize()
long getMaxTextMessageBufferSize()
List<String> getExtensions()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||