public class DefaultServerConfiguration extends Object implements javax.websocket.server.ServerApplicationConfiguration
ServerApplicationConfiguration interface. Allows setting all the configuration
properties.| Constructor and Description |
|---|
DefaultServerConfiguration() |
| Modifier and Type | Method and Description |
|---|---|
DefaultServerConfiguration |
endpoint(Class<?> endpointClass)
Registers a new annotated or programmatic endpoint.
|
DefaultServerConfiguration |
endpoints(Class<?>... endpointClasses)
Registers new endpoint annotated or programmatic classes.
|
DefaultServerConfiguration |
endpoints(Set<Class<?>> endpointClasses)
Registers new endpoint annotated classes.
|
Set<Class> |
getAnnotatedEndpointClasses(Set<Class> scanned) |
Set<Class<? extends javax.websocket.server.ServerEndpointConfiguration>> |
getEndpointConfigurationClasses(Set<Class<? extends javax.websocket.server.ServerEndpointConfiguration>> scanned) |
public Set<Class<? extends javax.websocket.server.ServerEndpointConfiguration>> getEndpointConfigurationClasses(Set<Class<? extends javax.websocket.server.ServerEndpointConfiguration>> scanned)
getEndpointConfigurationClasses in interface javax.websocket.server.ServerApplicationConfigurationpublic Set<Class> getAnnotatedEndpointClasses(Set<Class> scanned)
getAnnotatedEndpointClasses in interface javax.websocket.server.ServerApplicationConfigurationpublic DefaultServerConfiguration endpoint(Class<?> endpointClass) throws IllegalArgumentException
endpointClass - class annotated with WebSocketEndpoint annotation or extending ServerEndpointConfiguration.IllegalArgumentExceptionpublic DefaultServerConfiguration endpoints(Class<?>... endpointClasses)
endpointClasses - classes annotated with WebSocketEndpoint
annotation or extending ServerEndpointConfiguration.public DefaultServerConfiguration endpoints(Set<Class<?>> endpointClasses)
endpointClasses - classes annotated with WebSocketEndpoint
annotation or extending ServerEndpointConfiguration.Copyright © 2012-2013. All Rights Reserved.