Class BaseAtmosphereServlet

  • All Implemented Interfaces:
    java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig
    Direct Known Subclasses:
    ActivityStreamAtmosphereServlet, LogServlet

    public abstract class BaseAtmosphereServlet
    extends javax.servlet.GenericServlet
    Base Atmosphere Servlet.
    Since:
    9.0.0
    Version:
    $Revision$ $Date$
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      BaseAtmosphereServlet​(java.lang.Class<? extends org.atmosphere.cpr.AtmosphereHandler> atmosphereHandler)
      Creates a new instance using the given AtmosphereHandler class.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void destroy()  
      void init​(javax.servlet.ServletConfig sc)  
      void service​(javax.servlet.ServletRequest req, javax.servlet.ServletResponse res)  
      • 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

      • BaseAtmosphereServlet

        public BaseAtmosphereServlet​(java.lang.Class<? extends org.atmosphere.cpr.AtmosphereHandler> atmosphereHandler)
        Creates a new instance using the given AtmosphereHandler class.
        Parameters:
        atmosphereHandler - the atmosphere handler.
        Since:
        9.0.0
    • Method Detail

      • init

        public void init​(javax.servlet.ServletConfig sc)
                  throws javax.servlet.ServletException
        Specified by:
        init in interface javax.servlet.Servlet
        Overrides:
        init in class javax.servlet.GenericServlet
        Throws:
        javax.servlet.ServletException
      • destroy

        public void destroy()
        Specified by:
        destroy in interface javax.servlet.Servlet
        Overrides:
        destroy in class javax.servlet.GenericServlet
      • service

        public void service​(javax.servlet.ServletRequest req,
                            javax.servlet.ServletResponse res)
                     throws javax.servlet.ServletException,
                            java.io.IOException
        Specified by:
        service in interface javax.servlet.Servlet
        Specified by:
        service in class javax.servlet.GenericServlet
        Throws:
        javax.servlet.ServletException
        java.io.IOException