protected ServerContainer getServerContainer ( ServletContextEvent servletContextEvent ) { ServletContext context = servletContextEvent . getServletContext ( ) ; return ( ServerContainer ) context . getAttribute ( "javax.websocket.server.ServerContainer" ) ; }
Return the WebSocket ServerContainer from the servletContext .