Class SmallServlet

java.lang.Object
javax.servlet.GenericServlet
javax.servlet.http.HttpServlet
com.blackrook.small.SmallServlet
All Implemented Interfaces:
Serializable, EventListener, javax.servlet.http.HttpSessionAttributeListener, javax.servlet.http.HttpSessionListener, javax.servlet.Servlet, javax.servlet.ServletConfig

public final class SmallServlet extends javax.servlet.http.HttpServlet implements javax.servlet.http.HttpSessionAttributeListener, javax.servlet.http.HttpSessionListener
The main dispatcher servlet for the controller portion of the framework. Attaches an attribute to the application scope for the component system.
Author:
Matthew Tropiano
See Also:
  • Constructor Summary

    Constructors
    Constructor
    Description
    Creates the dispatcher servlet.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    attributeAdded(javax.servlet.http.HttpSessionBindingEvent event)
     
    void
    attributeRemoved(javax.servlet.http.HttpSessionBindingEvent event)
     
    void
    attributeReplaced(javax.servlet.http.HttpSessionBindingEvent event)
     
    void
     
    void
     
    protected void
    service(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
     
    void
    sessionCreated(javax.servlet.http.HttpSessionEvent se)
     
    void
    sessionDestroyed(javax.servlet.http.HttpSessionEvent se)
     

    Methods inherited from class javax.servlet.http.HttpServlet

    doDelete, doGet, doHead, doOptions, doPost, doPut, doTrace, getLastModified, 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 Details

    • SmallServlet

      public SmallServlet()
      Creates the dispatcher servlet.
  • Method Details

    • init

      public void init() throws javax.servlet.ServletException
      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
    • sessionCreated

      public void sessionCreated(javax.servlet.http.HttpSessionEvent se)
      Specified by:
      sessionCreated in interface javax.servlet.http.HttpSessionListener
    • sessionDestroyed

      public void sessionDestroyed(javax.servlet.http.HttpSessionEvent se)
      Specified by:
      sessionDestroyed in interface javax.servlet.http.HttpSessionListener
    • attributeAdded

      public void attributeAdded(javax.servlet.http.HttpSessionBindingEvent event)
      Specified by:
      attributeAdded in interface javax.servlet.http.HttpSessionAttributeListener
    • attributeRemoved

      public void attributeRemoved(javax.servlet.http.HttpSessionBindingEvent event)
      Specified by:
      attributeRemoved in interface javax.servlet.http.HttpSessionAttributeListener
    • attributeReplaced

      public void attributeReplaced(javax.servlet.http.HttpSessionBindingEvent event)
      Specified by:
      attributeReplaced in interface javax.servlet.http.HttpSessionAttributeListener
    • service

      protected void service(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
      Overrides:
      service in class javax.servlet.http.HttpServlet