T
- public class LoginServlet<T extends AppUser> extends WebappServlet
Modifier and Type | Field and Description |
---|---|
static Feature |
BUILT_IN_LOGIN |
static Feature |
COOKIE_TEST |
static Feature |
REPORT_ACCOUNT_NOT_FOUND |
static Feature |
RESET_PASSWORD_PAGE |
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 |
---|
LoginServlet() |
Modifier and Type | Method and Description |
---|---|
static void |
clearSavedResult(SessionService sess) |
static void |
doLoginResult(AppContext conn,
HttpServletRequest req,
HttpServletResponse res,
FormResult result)
go to intial page on login.
|
void |
doPost(HttpServletRequest req,
HttpServletResponse res,
AppContext conn)
Method that does the actual work
|
static java.lang.String |
getLoginPage(AppContext conn) |
static java.lang.String |
getMainPage(AppContext conn) |
static SerializableFormResult |
getSavedResult(SessionService sess) |
static java.lang.String |
getWelcomePage(AppContext conn) |
static void |
setSavedResult(SessionService sess,
SerializableFormResult result) |
badInputCheck, checkBadInput, confirm, confirm, doGet, doPost, doPut, doPut, encodeCGI, getLogger, handleFormResult, message, message, messageWithArgs, sendMessageWithArgs
public static final Feature REPORT_ACCOUNT_NOT_FOUND
public static final Feature RESET_PASSWORD_PAGE
public static final Feature COOKIE_TEST
public static final Feature BUILT_IN_LOGIN
public void doPost(HttpServletRequest req, HttpServletResponse res, AppContext conn) throws ServletException, java.io.IOException
WebappServlet
doPost
in class WebappServlet
ServletException
java.io.IOException
public static void doLoginResult(AppContext conn, HttpServletRequest req, HttpServletResponse res, FormResult result) throws java.lang.Exception
conn
- req
- res
- result
- java.lang.Exception
public static void setSavedResult(SessionService sess, SerializableFormResult result)
public static void clearSavedResult(SessionService sess)
public static SerializableFormResult getSavedResult(SessionService sess)
public static java.lang.String getWelcomePage(AppContext conn)
public static java.lang.String getMainPage(AppContext conn)
public static java.lang.String getLoginPage(AppContext conn)