public class TyrusServerConfiguration extends Object implements javax.websocket.server.ServerApplicationConfig
ServerApplicationConfig
s, if any, or deployed classes.Constructor and Description |
---|
TyrusServerConfiguration(Set<Class<?>> classes,
Set<Class<?>> dynamicallyAddedClasses,
Set<javax.websocket.server.ServerEndpointConfig> serverEndpointConfigs,
ErrorCollector errorCollector)
Create new
TyrusServerConfiguration . |
TyrusServerConfiguration(Set<Class<?>> classes,
Set<javax.websocket.server.ServerEndpointConfig> serverEndpointConfigs)
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.ServerEndpointConfig> |
getEndpointConfigs(Set<Class<? extends javax.websocket.Endpoint>> scanned)
Gets all the
ServerEndpointConfig classes which should be deployed. |
public TyrusServerConfiguration(Set<Class<?>> classes, Set<javax.websocket.server.ServerEndpointConfig> serverEndpointConfigs)
TyrusServerConfiguration
.classes
- classes to be included in this application instance. Can contain any combination of
annotated endpoints (see ServerEndpoint
). Cannot be null
.serverEndpointConfigs
- List of instances of ServerEndpointConfig
to be deployed.IllegalArgumentException
- when any of the arguments is null
.public TyrusServerConfiguration(Set<Class<?>> classes, Set<Class<?>> dynamicallyAddedClasses, Set<javax.websocket.server.ServerEndpointConfig> serverEndpointConfigs, ErrorCollector errorCollector)
TyrusServerConfiguration
.classes
- classes to be included in this application instance. Can contain any combination
of annotated endpoints (see ServerEndpoint
).dynamicallyAddedClasses
- dynamically deployed classes. See .ServerContainer#addEndpoint(Class)
.serverEndpointConfigs
- List of instances of ServerEndpointConfig
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.ServerEndpointConfig> getEndpointConfigs(Set<Class<? extends javax.websocket.Endpoint>> scanned)
ServerEndpointConfig
classes which should be deployed.getEndpointConfigs
in interface javax.websocket.server.ServerApplicationConfig
scanned
- is unused.ServerEndpointConfig
classes which should be deployed.public Set<Class<?>> getAnnotatedEndpointClasses(Set<Class<?>> scanned)
ServerEndpoint
annotation which should be deployed.getAnnotatedEndpointClasses
in interface javax.websocket.server.ServerApplicationConfig
scanned
- is unused.ServerEndpoint
annotation which should be deployed.Copyright © 2012-2015, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.