Make the WebSocketServerContainer initialize methods private
Signed-off-by: Lachlan Roberts <lachlan@webtide.com>
This commit is contained in:
parent
1b10e2330e
commit
b4d2ccc6b8
|
@ -148,7 +148,7 @@ public class JavaxWebSocketServletContainerInitializer implements ServletContain
|
||||||
* @param context the context to work with
|
* @param context the context to work with
|
||||||
* @return the default {@link ServerContainer} for this context
|
* @return the default {@link ServerContainer} for this context
|
||||||
*/
|
*/
|
||||||
public static ServerContainer initialize(ServletContextHandler context)
|
private static ServerContainer initialize(ServletContextHandler context)
|
||||||
{
|
{
|
||||||
JavaxWebSocketServerContainer serverContainer = JavaxWebSocketServerContainer.getContainer(context.getServletContext());
|
JavaxWebSocketServerContainer serverContainer = JavaxWebSocketServerContainer.getContainer(context.getServletContext());
|
||||||
if (serverContainer == null)
|
if (serverContainer == null)
|
||||||
|
|
|
@ -87,7 +87,7 @@ public class JettyWebSocketServletContainerInitializer implements ServletContain
|
||||||
* @param context the context to work with
|
* @param context the context to work with
|
||||||
* @return the default {@link JettyWebSocketServerContainer}
|
* @return the default {@link JettyWebSocketServerContainer}
|
||||||
*/
|
*/
|
||||||
public static JettyWebSocketServerContainer initialize(ServletContextHandler context)
|
private static JettyWebSocketServerContainer initialize(ServletContextHandler context)
|
||||||
{
|
{
|
||||||
WebSocketComponents components = WebSocketComponents.ensureWebSocketComponents(context.getServletContext());
|
WebSocketComponents components = WebSocketComponents.ensureWebSocketComponents(context.getServletContext());
|
||||||
FilterHolder filterHolder = WebSocketUpgradeFilter.ensureFilter(context.getServletContext());
|
FilterHolder filterHolder = WebSocketUpgradeFilter.ensureFilter(context.getServletContext());
|
||||||
|
|
Loading…
Reference in New Issue