net.sf.bimbo
Class BimboServlet
java.lang.Object
javax.servlet.GenericServlet
javax.servlet.http.HttpServlet
net.sf.bimbo.BimboServlet
- All Implemented Interfaces:
- java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig, BimboContext
public class BimboServlet
- extends javax.servlet.http.HttpServlet
- implements BimboContext
The Bimbo web application runtime servlet. This servlet interprets all Bimbo
annotations of your web application.
The required init parameter WelcomePage indicates the welcome page
full class name. All other web application configuration is driven by
annotations.
- Author:
- fcorneli
- See Also:
- Serialized Form
Method Summary |
|
createPage(java.lang.Class<T> pageClass,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
|
protected void |
doGet(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
|
protected void |
doPost(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
|
void |
init(javax.servlet.ServletConfig config)
|
static java.lang.Class<?> |
loadClass(java.lang.String className)
|
void |
performAction(java.lang.Object page,
java.lang.String actionName,
java.lang.Object actionParam,
javax.servlet.http.HttpSession session,
java.io.PrintWriter writer,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
|
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 |
USERNAME_SESSION_ATTRIBUTE
public static final java.lang.String USERNAME_SESSION_ATTRIBUTE
BimboServlet
public BimboServlet()
init
public void init(javax.servlet.ServletConfig config)
throws javax.servlet.ServletException
- Specified by:
init
in interface javax.servlet.Servlet
- Overrides:
init
in class javax.servlet.GenericServlet
- Throws:
javax.servlet.ServletException
loadClass
public static java.lang.Class<?> loadClass(java.lang.String className)
throws javax.servlet.ServletException
- Throws:
javax.servlet.ServletException
doGet
protected void doGet(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws javax.servlet.ServletException,
java.io.IOException
- Overrides:
doGet
in class javax.servlet.http.HttpServlet
- Throws:
javax.servlet.ServletException
java.io.IOException
doPost
protected void doPost(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws javax.servlet.ServletException,
java.io.IOException
- Overrides:
doPost
in class javax.servlet.http.HttpServlet
- Throws:
javax.servlet.ServletException
java.io.IOException
performAction
public void performAction(java.lang.Object page,
java.lang.String actionName,
java.lang.Object actionParam,
javax.servlet.http.HttpSession session,
java.io.PrintWriter writer,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws java.io.IOException
- Specified by:
performAction
in interface BimboContext
- Throws:
java.io.IOException
createPage
public <T> T createPage(java.lang.Class<T> pageClass,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws java.lang.InstantiationException,
java.lang.IllegalAccessException,
java.lang.IllegalArgumentException,
javax.naming.NamingException,
javax.servlet.ServletException
- Throws:
java.lang.InstantiationException
java.lang.IllegalAccessException
java.lang.IllegalArgumentException
javax.naming.NamingException
javax.servlet.ServletException
Copyright © 2008 Frank Cornelis IT. All Rights Reserved.