com.sun.grizzly.cometd.servlet
Class CometdServlet

java.lang.Object
  extended by javax.servlet.GenericServlet
      extended by javax.servlet.http.HttpServlet
          extended by com.sun.grizzly.cometd.servlet.CometdServlet
All Implemented Interfaces:
Serializable, Servlet, ServletConfig

public class CometdServlet
extends HttpServlet

Simple CometdChat that route Cometd Request to the EventRouter.

Author:
Jeanfrancois Arcand, TAKAI, Naoto
See Also:
Serialized Form

Constructor Summary
CometdServlet()
           
 
Method Summary
 void doGet(HttpServletRequest request, HttpServletResponse response)
           
 void doPost(HttpServletRequest hreq, HttpServletResponse hres)
           
 void init(ServletConfig config)
          Initialize the Servlet by creating the CometContext.
 
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, service
 
Methods inherited from class javax.servlet.GenericServlet
destroy, 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

CometdServlet

public CometdServlet()
Method Detail

init

public void init(ServletConfig config)
          throws ServletException
Initialize the Servlet by creating the CometContext.

Specified by:
init in interface Servlet
Overrides:
init in class GenericServlet
Throws:
ServletException

doGet

public void doGet(HttpServletRequest request,
                  HttpServletResponse response)
           throws ServletException,
                  IOException
Overrides:
doGet in class HttpServlet
Throws:
ServletException
IOException

doPost

public void doPost(HttpServletRequest hreq,
                   HttpServletResponse hres)
            throws ServletException,
                   IOException
Overrides:
doPost in class HttpServlet
Throws:
ServletException
IOException


Copyright © 2010 SUN Microsystems. All Rights Reserved.