Package com.blackrook.small
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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
attributeAdded
(javax.servlet.http.HttpSessionBindingEvent event) void
attributeRemoved
(javax.servlet.http.HttpSessionBindingEvent event) void
attributeReplaced
(javax.servlet.http.HttpSessionBindingEvent event) void
destroy()
void
init()
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
-
Constructor Details
-
SmallServlet
public SmallServlet()Creates the dispatcher servlet.
-
-
Method Details
-
init
public void init() throws javax.servlet.ServletException- Overrides:
init
in classjavax.servlet.GenericServlet
- Throws:
javax.servlet.ServletException
-
destroy
public void destroy()- Specified by:
destroy
in interfacejavax.servlet.Servlet
- Overrides:
destroy
in classjavax.servlet.GenericServlet
-
sessionCreated
public void sessionCreated(javax.servlet.http.HttpSessionEvent se) - Specified by:
sessionCreated
in interfacejavax.servlet.http.HttpSessionListener
-
sessionDestroyed
public void sessionDestroyed(javax.servlet.http.HttpSessionEvent se) - Specified by:
sessionDestroyed
in interfacejavax.servlet.http.HttpSessionListener
-
attributeAdded
public void attributeAdded(javax.servlet.http.HttpSessionBindingEvent event) - Specified by:
attributeAdded
in interfacejavax.servlet.http.HttpSessionAttributeListener
-
attributeRemoved
public void attributeRemoved(javax.servlet.http.HttpSessionBindingEvent event) - Specified by:
attributeRemoved
in interfacejavax.servlet.http.HttpSessionAttributeListener
-
attributeReplaced
public void attributeReplaced(javax.servlet.http.HttpSessionBindingEvent event) - Specified by:
attributeReplaced
in interfacejavax.servlet.http.HttpSessionAttributeListener
-
service
protected void service(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) - Overrides:
service
in classjavax.servlet.http.HttpServlet
-