public class WebSocketServerContainerInitializer extends Object implements ServletContainerInitializer
Modifier and Type | Field and Description |
---|---|
static String |
ADD_DYNAMIC_FILTER_KEY |
static String |
ENABLE_KEY |
Constructor and Description |
---|
WebSocketServerContainerInitializer() |
Modifier and Type | Method and Description |
---|---|
static ServerContainer |
configureContext(ServletContextHandler context)
Embedded Jetty approach for non-bytecode scanning.
|
static ServerContainer |
configureContext(ServletContext context,
ServletContextHandler jettyContext)
Deprecated.
use
configureContext(ServletContextHandler) instead |
static boolean |
isEnabledViaContext(ServletContext context,
String keyName,
boolean defValue)
Test a ServletContext for
init-param or attribute at keyName for
true or false setting that determines if the specified feature is enabled (or not). |
void |
onStartup(Set<Class<?>> c,
ServletContext context) |
public static final String ENABLE_KEY
public static final String ADD_DYNAMIC_FILTER_KEY
public static boolean isEnabledViaContext(ServletContext context, String keyName, boolean defValue)
init-param
or attribute
at keyName
for
true or false setting that determines if the specified feature is enabled (or not).context
- the context to searchkeyName
- the key namedefValue
- the default value, if the value is not specified in the contextpublic static ServerContainer configureContext(ServletContextHandler context) throws ServletException
ServletException
@Deprecated public static ServerContainer configureContext(ServletContext context, ServletContextHandler jettyContext) throws ServletException
configureContext(ServletContextHandler)
insteadServletException
public void onStartup(Set<Class<?>> c, ServletContext context) throws ServletException
onStartup
in interface ServletContainerInitializer
ServletException
Copyright © 1995-2017 Webtide. All Rights Reserved.