Class NativeWebSocketServletContainerInitializer
- java.lang.Object
 - 
- org.eclipse.jetty.websocket.server.NativeWebSocketServletContainerInitializer
 
 
- 
- All Implemented Interfaces:
 ServletContainerInitializer
@Deprecated(since="2021-05-27") public class NativeWebSocketServletContainerInitializer extends java.lang.Object implements ServletContainerInitializer
Deprecated. 
- 
- 
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceNativeWebSocketServletContainerInitializer.ConfiguratorDeprecated. 
- 
Field Summary
Fields Modifier and Type Field Description static java.lang.StringATTR_KEYDeprecated. 
- 
Constructor Summary
Constructors Constructor Description NativeWebSocketServletContainerInitializer()Deprecated. 
- 
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static voidconfigure(ServletContextHandler context, NativeWebSocketServletContainerInitializer.Configurator configurator)Deprecated.Configure theServletContextHandlerto call theNativeWebSocketServletContainerInitializerduring theServletContextinitialization phase.static NativeWebSocketConfigurationgetDefaultFrom(ServletContext context)Deprecated.useconfigure(ServletContextHandler, Configurator)insteadstatic NativeWebSocketConfigurationinitialize(ServletContextHandler context)Deprecated.Immediately initialize theServletContextHandlerwith the defaultNativeWebSocketConfiguration.voidonStartup(java.util.Set<java.lang.Class<?>> c, ServletContext context)Deprecated.Receives notification during startup of a web application of the classes within the web application that matched the criteria defined via theHandlesTypesannotation. 
 - 
 
- 
- 
Method Detail
- 
initialize
public static NativeWebSocketConfiguration initialize(ServletContextHandler context)
Deprecated.Immediately initialize theServletContextHandlerwith the defaultNativeWebSocketConfiguration.This method is typically called from
onStartup(Set, ServletContext)itself or from another dependentServletContainerInitializerthat requires minimal setup to be performed.This method SHOULD NOT BE CALLED by users of Jetty. Use the
configure(ServletContextHandler, Configurator)method instead.This will return the default
NativeWebSocketConfigurationif already initialized, and not create a newNativeWebSocketConfigurationeach time it is called.- Parameters:
 context- the context to work with- Returns:
 - the default 
NativeWebSocketConfiguration 
 
- 
configure
public static void configure(ServletContextHandler context, NativeWebSocketServletContainerInitializer.Configurator configurator)
Deprecated.Configure theServletContextHandlerto call theNativeWebSocketServletContainerInitializerduring theServletContextinitialization phase.- Parameters:
 context- the context to add listener to.configurator- a lambda that is called to allow theNativeWebSocketConfigurationto be configured duringServletContextinitialization phase
 
- 
getDefaultFrom
@Deprecated public static NativeWebSocketConfiguration getDefaultFrom(ServletContext context)
Deprecated.useconfigure(ServletContextHandler, Configurator)insteadObtain the defaultNativeWebSocketConfigurationfrom theServletContext- Parameters:
 context- the context to work with- Returns:
 - the default 
NativeWebSocketConfiguration - See Also:
 configure(ServletContextHandler, Configurator)
 
- 
onStartup
public void onStartup(java.util.Set<java.lang.Class<?>> c, ServletContext context)Deprecated.Description copied from interface:ServletContainerInitializerReceives notification during startup of a web application of the classes within the web application that matched the criteria defined via theHandlesTypesannotation.- Specified by:
 onStartupin interfaceServletContainerInitializer- Parameters:
 c- The (possibly null) set of classes that met the specified criteriacontext- The ServletContext of the web application in which the classes were discovered
 
 - 
 
 -