Top Description Methods
jakarta.websocket.server

public Interface ServerApplicationConfig

Imports
java.util.Set, jakarta.websocket.Endpoint

Applications may provide an implementation of this interface to filter the discovered WebSocket endpoints that are deployed. Implementations of this class will be discovered via an ServletContainerInitializer scan.

Method Summary

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

Returns:

The set of POJOs the application wishes to deploy
getAnnotatedEndpointClasses
(Set<Class<?>>
The POJOs annotated with ServerEndpoint found in the application
scanned
)

Enables applications to filter the discovered classes annotated with ServerEndpoint.

public Set<ServerEndpointConfig>

Returns:

The set of configurations for the endpoint the application wishes to deploy
getEndpointConfigs
(Set<Class<? extends Endpoint>>
The Endpoint implementations found in the application
scanned
)

Enables applications to filter the discovered implementations of ServerEndpointConfig.

Method Detail

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

Enables applications to filter the discovered classes annotated with ServerEndpoint.

Parameters
scanned:Set<Class<?>>

The POJOs annotated with ServerEndpoint found in the application

Returns:Set<Class<?>>

The set of POJOs the application wishes to deploy

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

Enables applications to filter the discovered implementations of ServerEndpointConfig.

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

The Endpoint implementations found in the application

Returns:Set<ServerEndpointConfig>

The set of configurations for the endpoint the application wishes to deploy