Top Description Constructors Methods
org.apache.tomcat.websocket.server

public Class WsSci

extends Object
implements ServletContainerInitializer
Class Inheritance
All Implemented Interfaces
jakarta.servlet.ServletContainerInitializer
Annotations
@HandlesTypes:ServerEndpoint, ServerApplicationConfig, Endpoint
Imports
java.lang.reflect.Modifier, java.util.HashSet, .Set, jakarta.servlet.ServletContainerInitializer, .ServletContext, .ServletException, jakarta.servlet.annotation.HandlesTypes, jakarta.websocket.ContainerProvider, .DeploymentException, .Endpoint, jakarta.websocket.server.ServerApplicationConfig, .ServerEndpoint, .ServerEndpointConfig

Registers an interest in any class that is annotated with ServerEndpoint so that Endpoint can be published via the WebSocket server.

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
pack-priv static WsServerContainer
init(ServletContext servletContext, boolean initBySciMechanism)

private static boolean
isExported(Class<?> type)

public void
onStartup(Set<Class<?>>
The (possibly null) set of classes that met the specified criteria
clazzes
,
ServletContext
The ServletContext of the web application in which the classes were discovered
ctx
)

Implements jakarta.servlet.ServletContainerInitializer.onStartup.

Receives notification during startup of a web application of the classes within the web application that matched the criteria defined via the jakarta.servlet.annotation.HandlesTypes annotation.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

WsSciback to summary
public WsSci()

Method Detail

initback to summary
pack-priv static WsServerContainer init(ServletContext servletContext, boolean initBySciMechanism)
isExportedback to summary
private static boolean isExported(Class<?> type)
onStartupback to summary
public void onStartup(Set<Class<?>> clazzes, ServletContext ctx) throws ServletException

Implements jakarta.servlet.ServletContainerInitializer.onStartup.

Doc from jakarta.servlet.ServletContainerInitializer.onStartup.

Receives notification during startup of a web application of the classes within the web application that matched the criteria defined via the jakarta.servlet.annotation.HandlesTypes annotation.

Parameters
clazzes:Set<Class<?>>

The (possibly null) set of classes that met the specified criteria

ctx:ServletContext

The ServletContext of the web application in which the classes were discovered

Annotations
@Override
Exceptions
ServletException:
If an error occurs