public class EquinoxConsoleWebSocketServlet extends WebSocketServlet implements WebConsoleWriterOutputStream.OnFlushListener
Constructor and Description |
---|
EquinoxConsoleWebSocketServlet() |
EquinoxConsoleWebSocketServlet(WebConsoleSession consoleSession,
EquinoxChattingSupport support) |
Modifier and Type | Method and Description |
---|---|
void |
destroy() |
protected void |
doGet(HttpServletRequest request,
HttpServletResponse response) |
WebSocket |
doWebSocketConnect(HttpServletRequest request,
String protocol)
Factory method that applications needs to implement to return a
WebSocket object. |
void |
init() |
void |
onFlush()
Called right after the flush method on the output stream has been executed.
|
checkOrigin, service
doDelete, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service
getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log
public EquinoxConsoleWebSocketServlet()
public EquinoxConsoleWebSocketServlet(WebConsoleSession consoleSession, EquinoxChattingSupport support)
public void init() throws ServletException
init
in class WebSocketServlet
ServletException
GenericServlet.init()
public void destroy()
destroy
in interface Servlet
destroy
in class WebSocketServlet
protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException
doGet
in class HttpServlet
ServletException
IOException
public WebSocket doWebSocketConnect(HttpServletRequest request, String protocol)
WebSocketFactory.Acceptor
Factory method that applications needs to implement to return a
WebSocket
object.
doWebSocketConnect
in interface WebSocketFactory.Acceptor
request
- the incoming HTTP upgrade requestprotocol
- the websocket sub protocolWebSocket
object that will handle websocket events.public void onFlush()
onFlush
in interface WebConsoleWriterOutputStream.OnFlushListener
Copyright © 1995-2013 Mort Bay Consulting. All Rights Reserved.