org.eclipse.jetty.osgi.equinoxtools.console
Class EquinoxConsoleWebSocketServlet
java.lang.Object
javax.servlet.GenericServlet
javax.servlet.http.HttpServlet
org.eclipse.jetty.websocket.WebSocketServlet
org.eclipse.jetty.osgi.equinoxtools.console.EquinoxConsoleWebSocketServlet
- All Implemented Interfaces:
- Serializable, Servlet, ServletConfig, WebConsoleWriterOutputStream.OnFlushListener, WebSocketFactory.Acceptor
public class EquinoxConsoleWebSocketServlet
- extends WebSocketServlet
- implements WebConsoleWriterOutputStream.OnFlushListener
Websocket version of the Chat with equinox.
Ported from jetty's example 'WebSocketChatServlet'
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EquinoxConsoleWebSocketServlet
public EquinoxConsoleWebSocketServlet()
EquinoxConsoleWebSocketServlet
public EquinoxConsoleWebSocketServlet(WebConsoleSession consoleSession,
EquinoxChattingSupport support)
init
public void init()
throws ServletException
- Overrides:
init
in class WebSocketServlet
- Throws:
ServletException
- See Also:
GenericServlet.init()
destroy
public void destroy()
- Specified by:
destroy
in interface Servlet
- Overrides:
destroy
in class GenericServlet
doGet
protected void doGet(HttpServletRequest request,
HttpServletResponse response)
throws ServletException,
IOException
- Overrides:
doGet
in class HttpServlet
- Throws:
ServletException
IOException
doWebSocketConnect
public WebSocket doWebSocketConnect(HttpServletRequest request,
String protocol)
- Specified by:
doWebSocketConnect
in interface WebSocketFactory.Acceptor
onFlush
public void onFlush()
- Called right after the flush method on the output stream has been executed.
- Specified by:
onFlush
in interface WebConsoleWriterOutputStream.OnFlushListener
Copyright © 1995-2011 Mort Bay Consulting. All Rights Reserved.