Top Description Fields Constructors Methods
org.glassfish.tyrus.server

public Class TyrusServerConfiguration

extends Object
implements ServerApplicationConfig
Class Inheritance
All Implemented Interfaces
jakarta.websocket.server.ServerApplicationConfig
Imports
java.lang.reflect.Modifier, java.util.Collections, .HashSet, .Iterator, .Set, java.util.logging.Level, .Logger, jakarta.websocket.DeploymentException, .Endpoint, jakarta.websocket.server.ServerApplicationConfig, .ServerEndpoint, .ServerEndpointConfig, org.glassfish.tyrus.core.ErrorCollector, .ReflectionHelper

Container for either deployed ServerApplicationConfigs, if any, or deployed classes.
Author
Stepan Kopriva

Field Summary

Modifier and TypeField and Description
private final Set<Class<?>>
private static final Logger
private final Set<ServerEndpointConfig>

Constructor Summary

AccessConstructor and Description
public
TyrusServerConfiguration(Set<Class<?>>
classes to be included in this application instance. Can contain any combination of annotated endpoints (see ServerEndpoint). Cannot be null.
classes
,
Set<ServerEndpointConfig>
List of instances of ServerEndpointConfig to be deployed.
serverEndpointConfigs
)

Create new TyrusServerConfiguration.

public
TyrusServerConfiguration(Set<Class<?>>
classes to be included in this application instance. Can contain any combination of annotated endpoints (see ServerEndpoint).
classes
,
Set<Class<?>>
dynamically deployed classes. See .ServerContainer#addEndpoint(Class).
dynamicallyAddedClasses
,
Set<ServerEndpointConfig>
List of instances of ServerEndpointConfig to be deployed.
serverEndpointConfigs
,
ErrorCollector
model errors are reported to this instance. Cannot be null.
errorCollector
)

Create new TyrusServerConfiguration.

Method Summary

Modifier and TypeMethod and Description
public Set<Class<?>>

Returns:

all the classes annotated with ServerEndpoint annotation which should be deployed.
getAnnotatedEndpointClasses
(Set<Class<?>>
is unused.
scanned
)

Implements jakarta.websocket.server.ServerApplicationConfig.getAnnotatedEndpointClasses.

Gets all the classes annotated with ServerEndpoint annotation which should be deployed.

public Set<ServerEndpointConfig>

Returns:

all the ServerEndpointConfig classes which should be deployed.
getEndpointConfigs
(Set<Class<? extends Endpoint>>
is unused.
scanned
)

Implements jakarta.websocket.server.ServerApplicationConfig.getEndpointConfigs.

Gets all the ServerEndpointConfig classes which should be deployed.

private boolean
isAbstract(Class<?> clazz, ErrorCollector errorCollector)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

annotatedClassesback to summary
private final Set<Class<?>> annotatedClasses
LOGGERback to summary
private static final Logger LOGGER
serverEndpointConfigsback to summary
private final Set<ServerEndpointConfig> serverEndpointConfigs

Constructor Detail

TyrusServerConfigurationback to summary
public TyrusServerConfiguration(Set<Class<?>> classes, Set<ServerEndpointConfig> serverEndpointConfigs)

Create new TyrusServerConfiguration.

Parameters
classes:Set<Class<?>>

classes to be included in this application instance. Can contain any combination of annotated endpoints (see ServerEndpoint). Cannot be null.

serverEndpointConfigs:Set<ServerEndpointConfig>

List of instances of ServerEndpointConfig to be deployed.

Exceptions
IllegalArgumentException:
when any of the arguments is null.
TyrusServerConfigurationback to summary
public TyrusServerConfiguration(Set<Class<?>> classes, Set<Class<?>> dynamicallyAddedClasses, Set<ServerEndpointConfig> serverEndpointConfigs, ErrorCollector errorCollector)

Create new TyrusServerConfiguration.

Parameters
classes:Set<Class<?>>

classes to be included in this application instance. Can contain any combination of annotated endpoints (see ServerEndpoint).

dynamicallyAddedClasses:Set<Class<?>>

dynamically deployed classes. See .ServerContainer#addEndpoint(Class).

serverEndpointConfigs:Set<ServerEndpointConfig>

List of instances of ServerEndpointConfig to be deployed.

errorCollector:ErrorCollector

model errors are reported to this instance. Cannot be null.

Exceptions
IllegalArgumentException:
when any of the arguments is null.

Method Detail

getAnnotatedEndpointClassesback to summary
public Set<Class<?>> getAnnotatedEndpointClasses(Set<Class<?>> scanned)

Implements jakarta.websocket.server.ServerApplicationConfig.getAnnotatedEndpointClasses.

Gets all the classes annotated with ServerEndpoint annotation which should be deployed.

Parameters
scanned:Set<Class<?>>

is unused.

Returns:Set<Class<?>>

all the classes annotated with ServerEndpoint annotation which should be deployed.

Annotations
@Override
getEndpointConfigsback to summary
public Set<ServerEndpointConfig> getEndpointConfigs(Set<Class<? extends Endpoint>> scanned)

Implements jakarta.websocket.server.ServerApplicationConfig.getEndpointConfigs.

Gets all the ServerEndpointConfig classes which should be deployed.

Parameters
scanned:Set<Class<? extends Endpoint>>

is unused.

Returns:Set<ServerEndpointConfig>

all the ServerEndpointConfig classes which should be deployed.

Annotations
@Override
isAbstractback to summary
private boolean isAbstract(Class<?> clazz, ErrorCollector errorCollector)