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()
           
CometdServlet(PublishInterceptor publishInterceptor)
           
 
Method Summary
 void doGet(HttpServletRequest request, HttpServletResponse response)
           
 void doPost(HttpServletRequest hreq, HttpServletResponse hres)
           
 EventRouter getEventRouter()
          return the current EventRouter implementation.
 void setEventRouter(EventRouter eventRouter)
          Set the EventRouter
 
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, 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()

CometdServlet

public CometdServlet(PublishInterceptor publishInterceptor)
Method Detail

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

getEventRouter

public EventRouter getEventRouter()
return the current EventRouter implementation.

Returns:

setEventRouter

public void setEventRouter(EventRouter eventRouter)
Set the EventRouter

Parameters:
eventRouter - the EventRouter


Copyright © 2012 Oracle Corporation. All Rights Reserved.