Package jakarta.websocket.server
Interface ServerApplicationConfig
-
public interface ServerApplicationConfigApplications 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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.Set<java.lang.Class<?>>getAnnotatedEndpointClasses(java.util.Set<java.lang.Class<?>> scanned)Enables applications to filter the discovered classes annotated withServerEndpoint.java.util.Set<ServerEndpointConfig>getEndpointConfigs(java.util.Set<java.lang.Class<? extends Endpoint>> scanned)Enables applications to filter the discovered implementations ofServerEndpointConfig.
-
-
-
Method Detail
-
getEndpointConfigs
java.util.Set<ServerEndpointConfig> getEndpointConfigs(java.util.Set<java.lang.Class<? extends Endpoint>> scanned)
Enables applications to filter the discovered implementations ofServerEndpointConfig.- Parameters:
scanned- TheEndpointimplementations found in the application- Returns:
- The set of configurations for the endpoint the application wishes to deploy
-
getAnnotatedEndpointClasses
java.util.Set<java.lang.Class<?>> getAnnotatedEndpointClasses(java.util.Set<java.lang.Class<?>> scanned)
Enables applications to filter the discovered classes annotated withServerEndpoint.- Parameters:
scanned- The POJOs annotated withServerEndpointfound in the application- Returns:
- The set of POJOs the application wishes to deploy
-
-