|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.servlet.GenericServlet
javax.servlet.http.HttpServlet
no.feide.moria.servlet.MoriaServlet
no.feide.moria.servlet.LoginServlet
public final class LoginServlet
Use this servlet to bootstrap the system. Set <load-on-startup>1</load-on-startup> in web.xml.
| Field Summary | |
|---|---|
private no.feide.moria.log.MessageLogger |
log
Used for logging. |
private static java.lang.String[] |
REQUIRED_PARAMETERS
List of parameters required by LoginServlet. |
| Constructor Summary | |
|---|---|
LoginServlet()
|
|
| Method Summary | |
|---|---|
void |
doGet(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Handles the GET request. |
void |
doPost(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Handles the POST request. |
private java.util.Properties |
getConfig()
Gets the current configuration from the context. |
static java.lang.String[] |
getRequiredParameters()
|
private void |
showLoginPage(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
java.lang.String errorType)
Displays the login page. |
| Methods inherited from class no.feide.moria.servlet.MoriaServlet |
|---|
getServletConfig |
| 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, init, log, log |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private final no.feide.moria.log.MessageLogger log
private static final java.lang.String[] REQUIRED_PARAMETERS
LoginServlet. RequestUtil.PROP_COOKIE_SSO
RequestUtil.PROP_COOKIE_SSO_TTL
RequestUtil.PROP_COOKIE_DENYSSO
RequestUtil.PROP_COOKIE_DENYSSO_TTL
RequestUtil.PROP_COOKIE_LANG
RequestUtil.PROP_COOKIE_LANG_TTL
RequestUtil.PROP_COOKIE_ORG
RequestUtil.PROP_COOKIE_ORG_TTL
RequestUtil.PROP_LOGIN_TICKET_PARAM
RequestUtil.PROP_LOGIN_DEFAULT_LANGUAGE
RequestUtil.PROP_LOGIN_URL_PREFIX
RequestUtil.FAQ_LINK
RequestUtil.PROP_FAQ_STATUS
RequestUtil.PROP_FAQ_OWNER
RequestUtil.PROP_COOKIE_SSO,
RequestUtil.PROP_COOKIE_SSO_TTL,
RequestUtil.PROP_COOKIE_DENYSSO,
RequestUtil.PROP_COOKIE_DENYSSO_TTL,
RequestUtil.PROP_COOKIE_LANG,
RequestUtil.PROP_COOKIE_LANG_TTL,
RequestUtil.PROP_COOKIE_ORG,
RequestUtil.PROP_COOKIE_ORG_TTL,
RequestUtil.PROP_LOGIN_TICKET_PARAM,
RequestUtil.PROP_LOGIN_DEFAULT_LANGUAGE,
RequestUtil.PROP_LOGIN_URL_PREFIX,
RequestUtil.PROP_FAQ_STATUS| Constructor Detail |
|---|
public LoginServlet()
| Method Detail |
|---|
public static java.lang.String[] getRequiredParameters()
public void doGet(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws java.io.IOException,
javax.servlet.ServletException
doGet in class javax.servlet.http.HttpServletrequest - The HTTP request object.response - The HTTP response object.
java.io.IOException - Required by interface.
javax.servlet.ServletException - Required by interface.
public void doPost(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws java.io.IOException,
javax.servlet.ServletException
doPost in class javax.servlet.http.HttpServletrequest - The HTTP request.response - The HTTP response.
java.io.IOException - Required by interface.
javax.servlet.ServletException - Required by interface.
private void showLoginPage(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
java.lang.String errorType)
throws java.io.IOException,
javax.servlet.ServletException
request - The HTTP request.response - The HTTP response.errorType - The type of the error set by the caller.
java.io.IOException - When the JSP throws this exception.
javax.servlet.ServletException - When the JSP throws this exception.private java.util.Properties getConfig()
java.lang.IllegalStateException - If the configuration has not been set, or if any required
configuration parameters are missing.REQUIRED_PARAMETERS
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||