org.eclipse.jetty.osgi.equinoxtools.console
Class EquinoxConsoleContinuationServlet
java.lang.Object
javax.servlet.GenericServlet
javax.servlet.http.HttpServlet
org.eclipse.jetty.osgi.equinoxtools.console.EquinoxConsoleContinuationServlet
- All Implemented Interfaces:
- Serializable, Servlet, ServletConfig, WebConsoleWriterOutputStream.OnFlushListener
public class EquinoxConsoleContinuationServlet
- extends HttpServlet
- implements WebConsoleWriterOutputStream.OnFlushListener
Async servlet with jetty continuations to interact with the equinox console.
Ported from jetty's example 'ChatServlet'
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EquinoxConsoleContinuationServlet
public EquinoxConsoleContinuationServlet()
- Parameters:
consoleSession
-
EquinoxConsoleContinuationServlet
public EquinoxConsoleContinuationServlet(WebConsoleSession consoleSession,
EquinoxChattingSupport support)
- Parameters:
consoleSession
-
init
public void init()
throws ServletException
- Overrides:
init
in class GenericServlet
- Throws:
ServletException
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
doPost
protected void doPost(HttpServletRequest request,
HttpServletResponse response)
throws ServletException,
IOException
- Overrides:
doPost
in class HttpServlet
- Throws:
ServletException
IOException
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.