org.eclipse.jetty.osgi.equinoxtools.console
Class EquinoxConsoleContinuationServlet

java.lang.Object
  extended by javax.servlet.GenericServlet
      extended by javax.servlet.http.HttpServlet
          extended by 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

Constructor Summary
EquinoxConsoleContinuationServlet()
           
EquinoxConsoleContinuationServlet(WebConsoleSession consoleSession, EquinoxChattingSupport support)
           
 
Method Summary
 void destroy()
           
protected  void doGet(HttpServletRequest request, HttpServletResponse response)
           
protected  void doPost(HttpServletRequest request, HttpServletResponse response)
           
 void init()
           
 void onFlush()
          Called right after the flush method on the output stream has been executed.
 
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, service
 
Methods inherited from class javax.servlet.GenericServlet
getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EquinoxConsoleContinuationServlet

public EquinoxConsoleContinuationServlet()
Parameters:
consoleSession -

EquinoxConsoleContinuationServlet

public EquinoxConsoleContinuationServlet(WebConsoleSession consoleSession,
                                         EquinoxChattingSupport support)
Parameters:
consoleSession -
Method Detail

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.