public class TyrusServerConfiguration extends Object implements javax.websocket.server.ServerApplicationConfiguration
ServerApplicationConfigurations, if any, or deployed classes.| Constructor and Description |
|---|
TyrusServerConfiguration(Set<Class<?>> classes,
Set<javax.websocket.server.ServerEndpointConfiguration> serverEndpointConfigurations)
Create new
TyrusServerConfiguration. |
TyrusServerConfiguration(Set<Class<?>> classes,
Set<javax.websocket.server.ServerEndpointConfiguration> serverEndpointConfigurations,
ErrorCollector errorCollector)
Create new
TyrusServerConfiguration. |
| Modifier and Type | Method and Description |
|---|---|
Set<Class<?>> |
getAnnotatedEndpointClasses(Set<Class<?>> scanned)
Gets all the classes annotated with
ServerEndpoint annotation which should be deployed. |
Set<javax.websocket.server.ServerEndpointConfiguration> |
getEndpointConfigurations(Set<Class<? extends javax.websocket.Endpoint>> scanned)
Gets all the
ServerEndpointConfiguration classes which should be deployed. |
public TyrusServerConfiguration(Set<Class<?>> classes, Set<javax.websocket.server.ServerEndpointConfiguration> serverEndpointConfigurations)
TyrusServerConfiguration.classes - classes to be included in this application instance. Can contain any combination of annotated
endpoints (see ServerEndpoint). Cannot be null.serverEndpointConfigurations - List of instances of ServerEndpointConfiguration to be deployed.IllegalArgumentException - when any of the arguments is null.public TyrusServerConfiguration(Set<Class<?>> classes, Set<javax.websocket.server.ServerEndpointConfiguration> serverEndpointConfigurations, ErrorCollector errorCollector)
TyrusServerConfiguration.classes - classes to be included in this application instance. Can contain any combination of annotated
endpoints (see ServerEndpoint).serverEndpointConfigurations - List of instances of ServerEndpointConfiguration to be deployed.errorCollector - model errors are reported to this instance. Cannot be null.IllegalArgumentException - when any of the arguments is null.public Set<javax.websocket.server.ServerEndpointConfiguration> getEndpointConfigurations(Set<Class<? extends javax.websocket.Endpoint>> scanned)
ServerEndpointConfiguration classes which should be deployed.getEndpointConfigurations in interface javax.websocket.server.ServerApplicationConfigurationscanned - is unused.ServerEndpointConfiguration classes which should be deployed.public Set<Class<?>> getAnnotatedEndpointClasses(Set<Class<?>> scanned)
ServerEndpoint annotation which should be deployed.getAnnotatedEndpointClasses in interface javax.websocket.server.ServerApplicationConfigurationscanned - is unused.ServerEndpoint annotation which should be deployed.Copyright © 2012-2013. All Rights Reserved.