Package jakarta.websocket.server
Interface ServerApplicationConfig
-
- All Known Implementing Classes:
TyrusServerConfiguration
public interface ServerApplicationConfig
Developers include implementations of ServerApplicationConfig in an archive containing websocket endpoints (WAR file, or JAR file within the WAR file) in order to specify the websocket endpoints within the archive the implementation must deploy. There is a separate method for programmatic endpoints and for annotated endpoints.- Author:
- dannycoward
-
-
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)
Return a set of annotated endpoint classes that the server container must deploy.java.util.Set<ServerEndpointConfig>
getEndpointConfigs(java.util.Set<java.lang.Class<? extends Endpoint>> endpointClasses)
Return a set of ServerEndpointConfig instances that the server container will use to deploy the programmatic endpoints.
-
-
-
Method Detail
-
getEndpointConfigs
java.util.Set<ServerEndpointConfig> getEndpointConfigs(java.util.Set<java.lang.Class<? extends Endpoint>> endpointClasses)
Return a set of ServerEndpointConfig instances that the server container will use to deploy the programmatic endpoints. The set of Endpoint classes passed in to this method is the set obtained by scanning the archive containing the implementation of this ServerApplicationConfig. This set passed in may be used the build the set of ServerEndpointConfig instances to return to the container for deployment.- Parameters:
endpointClasses
- the set of all the Endpoint classes in the archive containing the implementation of this interface.- Returns:
- the non-null set of ServerEndpointConfig s to deploy on the server, using the empty set to indicate none.
-
getAnnotatedEndpointClasses
java.util.Set<java.lang.Class<?>> getAnnotatedEndpointClasses(java.util.Set<java.lang.Class<?>> scanned)
Return a set of annotated endpoint classes that the server container must deploy. The set of classes passed in to this method is the set obtained by scanning the archive containing the implementation of this interface. Therefore, this set passed in contains all the annotated endpoint classes in the JAR or WAR file containing the implementation of this interface. This set passed in may be used the build the set to return to the container for deployment.- Parameters:
scanned
- the set of all the annotated endpoint classes in the archive containing the implementation of this interface.- Returns:
- the non-null set of annotated endpoint classes to deploy on the server, using the empty set to indicate none.
-
-