|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.glassfish.tyrus.server.DefaultServerConfiguration
public class DefaultServerConfiguration
Default mutable implementation of ServerConfiguration interface. Allows setting all the configuration
properties.
| Constructor Summary | |
|---|---|
DefaultServerConfiguration()
|
|
| Method Summary | |
|---|---|
DefaultServerConfiguration |
endpoint(Class<?> endpointClass)
Registers a new endpoint annotated class. |
DefaultServerConfiguration |
endpoint(javax.websocket.Endpoint endpoint)
Registers a new programmatic endpoint. |
DefaultServerConfiguration |
endpoints(Class<?>... endpointClasses)
Registers new endpoint annotated classes. |
DefaultServerConfiguration |
endpoints(javax.websocket.Endpoint... endpoints)
Registers new endpoint instances. |
DefaultServerConfiguration |
endpoints(Set<Class<?>> endpointClasses)
Registers new endpoint annotated classes. |
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<javax.websocket.Endpoint> |
getEndpointInstances()
Returns a set of Endpoint instances that should be exposed by the server in addition to the
class-based endpoints returned from ServerConfiguration.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. |
DefaultServerConfiguration |
maxBinaryMessageBufferSize(long max)
Sets the max binary message buffer size. |
DefaultServerConfiguration |
maxSessionIdleTimeout(long max)
Sets the max session idle timeout. |
DefaultServerConfiguration |
maxTextMessageBufferSize(long max)
Sets the max text message buffer size. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultServerConfiguration()
| Method Detail |
|---|
public Set<Class<?>> getEndpointClasses()
ServerConfigurationWebSocketEndpoint
annotation that should be published by the container initialized with this configuration object.
getEndpointClasses in interface ServerConfigurationpublic Set<javax.websocket.Endpoint> getEndpointInstances()
ServerConfigurationEndpoint instances that should be exposed by the server in addition to the
class-based endpoints returned from ServerConfiguration.getEndpointClasses().
getEndpointInstances in interface ServerConfigurationendpoint objects.public long getMaxSessionIdleTimeout()
ServerConfiguration
getMaxSessionIdleTimeout in interface ServerConfigurationpublic long getMaxBinaryMessageBufferSize()
ServerConfiguration
getMaxBinaryMessageBufferSize in interface ServerConfigurationpublic long getMaxTextMessageBufferSize()
ServerConfiguration
getMaxTextMessageBufferSize in interface ServerConfigurationpublic List<String> getExtensions()
ServerConfiguration
getExtensions in interface ServerConfigurationpublic DefaultServerConfiguration maxSessionIdleTimeout(long max)
max - timeout in seconds.
public DefaultServerConfiguration maxBinaryMessageBufferSize(long max)
max - buffer size in bytes.
public DefaultServerConfiguration maxTextMessageBufferSize(long max)
max - buffer size in bytes.
public DefaultServerConfiguration endpoint(Class<?> endpointClass)
endpointClass - class annotated with WebSocketEndpoint annotation.
public DefaultServerConfiguration endpoint(javax.websocket.Endpoint endpoint)
endpoint - object implementing Endpoint interface.
public DefaultServerConfiguration endpoints(Class<?>... endpointClasses)
endpointClasses - classes annotated with WebSocketEndpoint
annotation.
public DefaultServerConfiguration endpoints(javax.websocket.Endpoint... endpoints)
endpoints - endpoints.
public DefaultServerConfiguration endpoints(Set<Class<?>> endpointClasses)
endpointClasses - classes annotated with WebSocketEndpoint
annotation.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||