| Modifier and Type | Class and Description |
|---|---|
| public static interface |
| Modifier and Type | Field and Description |
|---|---|
| public static final String | ATTR_JAKARTA_SERVER_CONTAINER
The ServletContext attribute key name for the ServerContainer per jakarta.websocket spec 1.0 final section 6.4 Programmatic Server Deployment |
| private final JakartaWebSocketServletContainerInitializer. | |
| public static final String | |
| public static final String | |
| private static final Logger |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public static void | configure(ServletContextHandler
the context to add listener to context, JakartaWebSocketServletContainerInitializer.the lambda that is called to allow the configuratorServerContainer to
be configured during the ServletContext initialization phaseConfigure the |
| private void | |
| public static ServerContainer | Returns: the defaultServerContainer for this contextthe context to work with context)Immediately initialize the |
| private static Boolean | Returns: the value for the feature key, otherwise null if key is not set in contextthe context to search context, String the key name keyName)Test a ServletContext for |
| public void | onStartup(Set<Class<?>>
the Set of application classes that extend, implement, or have been annotated with the class types specified
by the c, ServletContext HandlesTypes annotation, or null if there are no
matches, or this ServletContainerInitializer has not been annotated with HandlesTypesthe ServletContext of the web application that is being started and in which the classes
contained in c were found context)Implements jakarta. Notifies this ServletContainerInitializer of the startup of the application represented by the given ServletContext. |
| ATTR_JAKARTA_SERVER_CONTAINER | back to summary |
|---|---|
| public static final String ATTR_JAKARTA_SERVER_CONTAINER The ServletContext attribute key name for the ServerContainer per jakarta.websocket spec 1.0 final section 6.4 Programmatic Server Deployment | |
| configurator | back to summary |
|---|---|
| private final JakartaWebSocketServletContainerInitializer. | |
| ENABLE_KEY | back to summary |
|---|---|
| public static final String ENABLE_KEY | |
| HTTPCLIENT_ATTRIBUTE | back to summary |
|---|---|
| public static final String HTTPCLIENT_ATTRIBUTE | |
| LOG | back to summary |
|---|---|
| private static final Logger LOG | |
| JakartaWebSocketServletContainerInitializer | back to summary |
|---|---|
| public JakartaWebSocketServletContainerInitializer() | |
| JakartaWebSocketServletContainerInitializer | back to summary |
|---|---|
| public JakartaWebSocketServletContainerInitializer(JakartaWebSocketServletContainerInitializer. | |
| configure | back to summary |
|---|---|
| public static void configure(ServletContextHandler context, JakartaWebSocketServletContainerInitializer. Configure the
| |
| filterClasses | back to summary |
|---|---|
private void filterClasses(Set<Class<?>> c, Set<Class<? extends Endpoint>> discoveredExtendedEndpoints, Set<Class<?>> discoveredAnnotatedEndpoints, Set<Class<? extends ServerApplicationConfig>> serverAppConfigs)
| |
| initialize | back to summary |
|---|---|
| public static ServerContainer initialize(ServletContextHandler context) Immediately initialize the
This method is typically called from
Users of Jetty should use the
There is no enablement check here, and no automatic deployment of endpoints at this point
in time. It merely sets up the
| |
| isEnabledViaContext | back to summary |
|---|---|
| private static Boolean isEnabledViaContext(ServletContext context, String keyName) Test a ServletContext for
| |
| onStartup | back to summary |
|---|---|
| public void onStartup(Set<Class<?>> c, ServletContext context) throws ServletException Implements jakarta. Doc from jakarta. Notifies this ServletContainerInitializer of the startup of the application represented by the given ServletContext. If this ServletContainerInitializer is bundled in a JAR file inside the WEB-INF/lib directory of an application, its onStartup method will be invoked only once during the startup of the bundling application. If this ServletContainerInitializer is bundled inside a JAR file outside of any WEB-INF/lib directory, but still discoverable as described above, its onStartup method will be invoked every time an application is started.
| |
| Modifier and Type | Method and Description |
|---|---|
| public void |
| accept | back to summary |
|---|---|
| public void accept(ServletContext servletContext, ServerContainer serverContainer) throws DeploymentException | |