Merge pull request #4527 from eclipse/jetty-10.0.x-WebSocketServerContainers

Make the WebSocketServerContainer initialize methods private
This commit is contained in:
Simone Bordet 2020-01-30 09:47:07 +01:00 committed by GitHub
commit 3b2b74939e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -148,7 +148,7 @@ public class JavaxWebSocketServletContainerInitializer implements ServletContain
* @param context the context to work with
* @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());
if (serverContainer == null)

View File

@ -87,7 +87,7 @@ public class JettyWebSocketServletContainerInitializer implements ServletContain
* @param context the context to work with
* @return the default {@link JettyWebSocketServerContainer}
*/
public static JettyWebSocketServerContainer initialize(ServletContextHandler context)
private static JettyWebSocketServerContainer initialize(ServletContextHandler context)
{
WebSocketComponents components = WebSocketComponents.ensureWebSocketComponents(context.getServletContext());
FilterHolder filterHolder = WebSocketUpgradeFilter.ensureFilter(context.getServletContext());