ServletContainerInitializerpublic class WebSocketServerContainerInitializer extends java.lang.Object implements ServletContainerInitializer
| Modifier and Type | Class | Description |
|---|---|---|
static class |
WebSocketServerContainerInitializer.ContextDestroyListener |
DestroyListener
|
| Modifier and Type | Field | Description |
|---|---|---|
static java.lang.String |
ADD_DYNAMIC_FILTER_KEY |
|
static java.lang.String |
ENABLE_KEY |
|
static java.lang.String |
HTTPCLIENT_ATTRIBUTE |
| Constructor | Description |
|---|---|
WebSocketServerContainerInitializer() |
| Modifier and Type | Method | Description |
|---|---|---|
static ServerContainer |
configureContext(ServletContext context,
org.eclipse.jetty.servlet.ServletContextHandler jettyContext) |
Deprecated.
use
configureContext(ServletContextHandler) instead |
static ServerContainer |
configureContext(org.eclipse.jetty.servlet.ServletContextHandler context) |
Embedded Jetty approach for non-bytecode scanning.
|
static boolean |
isEnabledViaContext(ServletContext context,
java.lang.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(java.util.Set<java.lang.Class<?>> c,
ServletContext context) |
public static final java.lang.String ENABLE_KEY
public static final java.lang.String ADD_DYNAMIC_FILTER_KEY
public static final java.lang.String HTTPCLIENT_ATTRIBUTE
public WebSocketServerContainerInitializer()
public static boolean isEnabledViaContext(ServletContext context, java.lang.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(org.eclipse.jetty.servlet.ServletContextHandler context) throws ServletException
context - the ServletContextHandler to useServerContainer instanceServletException - if the WebSocketUpgradeFilter cannot be configured@Deprecated public static ServerContainer configureContext(ServletContext context, org.eclipse.jetty.servlet.ServletContextHandler jettyContext) throws ServletException
configureContext(ServletContextHandler) insteadcontext - not usedjettyContext - the ServletContextHandler to useServerContainer instanceServletException - if the WebSocketUpgradeFilter cannot be configuredpublic void onStartup(java.util.Set<java.lang.Class<?>> c,
ServletContext context)
throws ServletException
onStartup in interface ServletContainerInitializerServletExceptionCopyright © 1995–2018 Webtide. All rights reserved.