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, servicedoDelete, doHead, doOptions, doPost, doPut, doTrace, getLastModified, servicegetInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, logpublic EquinoxConsoleWebSocketServlet()
public EquinoxConsoleWebSocketServlet(WebConsoleSession consoleSession, EquinoxChattingSupport support)
public void init()
throws ServletException
init in class WebSocketServletServletExceptionGenericServlet.init()public void destroy()
destroy in interface Servletdestroy in class WebSocketServletprotected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException
doGet in class HttpServletServletExceptionIOExceptionpublic WebSocket doWebSocketConnect(HttpServletRequest request, String protocol)
WebSocketFactory.AcceptorFactory method that applications needs to implement to return a
WebSocket object.
doWebSocketConnect in interface WebSocketFactory.Acceptorrequest - the incoming HTTP upgrade requestprotocol - the websocket sub protocolWebSocket object that will handle websocket events.public void onFlush()
onFlush in interface WebConsoleWriterOutputStream.OnFlushListenerCopyright © 1995-2013 Mort Bay Consulting. All Rights Reserved.