WebSocketServer Class

Used to configure a servlet to accept WebSocket connections. This class is typically invoked in the servlet init() method and called within the processRequest() method. See WebSocketListener for more information.


public WebSocketServer( javaxt.http.servlet.HttpServlet servlet )


accept( javaxt.http.servlet.HttpServletRequest request ) returns boolean
Returns true if this class can process a given request.
processRequest( org.eclipse.jetty.websocket.api.WebSocketAdapter wrapper, javaxt.http.servlet.HttpServletRequest request, javaxt.http.servlet.HttpServletResponse response ) returns void
Used to upgrade a HTTP request to a WebSocket connection