public abstract class SessionServlet extends WebappServlet
ARGS, CONFIRM_NO, CONFIRM_POST_URL, CONFIRM_TYPE, CONFIRM_YES, EXTRA_HTML, MESSAGE_EXTRA_ATTR, MESSAGE_TYPE_ATTR, MESSAGES_JSP_URL, SCRIPTS_CONFIRM_JSP| Constructor and Description |
|---|
SessionServlet() |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
authorized(ServletSessionService serv) |
void |
doPost(HttpServletRequest req,
HttpServletResponse res,
AppContext conn)
Method that does the actual work
|
abstract void |
doPost(HttpServletRequest req,
HttpServletResponse res,
AppContext conn,
SessionService person)
work to be performed after authorisation check.
|
void |
doPut(HttpServletRequest req,
HttpServletResponse res,
AppContext conn)
Method to handle put requests
|
void |
doPut(HttpServletRequest req,
HttpServletResponse res,
AppContext conn,
SessionService person)
handle put requests
|
protected ServletSessionService |
getSessionService(AppContext conn)
Extension point to implement additional authorisation mechanisms on a per servlet basis.
|
badInputCheck, checkBadInput, confirm, confirm, doGet, doPost, doPut, encodeCGI, getLogger, handleFormResult, message, message, messageWithArgs, sendMessageWithArgspublic final void doPost(HttpServletRequest req,
HttpServletResponse res,
AppContext conn)
throws ServletException,
java.io.IOException
WebappServletdoPost in class WebappServletServletExceptionjava.io.IOExceptionpublic final void doPut(HttpServletRequest req,
HttpServletResponse res,
AppContext conn)
throws ServletException,
java.io.IOException
WebappServletdoPut in class WebappServletServletExceptionjava.io.IOExceptionprotected ServletSessionService getSessionService(AppContext conn)
conn - protected boolean authorized(ServletSessionService serv)
public abstract void doPost(HttpServletRequest req,
HttpServletResponse res,
AppContext conn,
SessionService person)
throws java.lang.Exception
req - res - conn - person - java.lang.Exceptionpublic void doPut(HttpServletRequest req,
HttpServletResponse res,
AppContext conn,
SessionService person)
throws java.lang.Exception
req - res - conn - person - java.lang.Exception