|
Adempiere 3.5.2a | |||||||||
| 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
org.compiere.www.WLogin
public class WLogin
Web Login Page.
Page request:
- Check database connection
- LoginInfo from request?
- Yes: DoLogin success ?
- Yes: return (second) preferences page
- No: return (first) user/password page
- No: User Principal ?
- Yes: DoLogin success ?
- Yes: return (second) preferences page
- No: return (first) user/password page
- No: return (first) user/password page
| Field Summary | |
|---|---|
protected CLogger |
log
Logger |
protected static String |
P_CLIENT
|
protected static String |
P_DATE
|
protected static String |
P_ERRORMSG
|
protected static String |
P_ORG
|
protected static String |
P_ROLE
|
protected static String |
P_STORE
|
protected static String |
P_WAREHOUSE
|
| Constructor Summary | |
|---|---|
WLogin()
|
|
| Method Summary | |
|---|---|
void |
destroy()
Clean up |
void |
doGet(HttpServletRequest request,
HttpServletResponse response)
Process the HTTP Get request - forward to Post |
void |
doPost(HttpServletRequest request,
HttpServletResponse response)
Process the HTTP Post request. |
String |
getServletInfo()
Get Servlet information |
void |
init(ServletConfig config)
Initialize |
| Methods inherited from class javax.servlet.http.HttpServlet |
|---|
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, service |
| Methods inherited from class javax.servlet.GenericServlet |
|---|
getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletName, init, log, log |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected CLogger log
protected static final String P_ROLE
protected static final String P_CLIENT
protected static final String P_ORG
protected static final String P_DATE
protected static final String P_WAREHOUSE
protected static final String P_ERRORMSG
protected static final String P_STORE
| Constructor Detail |
|---|
public WLogin()
| Method Detail |
|---|
public void init(ServletConfig config)
throws ServletException
init in interface Servletinit in class GenericServletconfig - confif
ServletExceptionpublic String getServletInfo()
getServletInfo in interface ServletgetServletInfo in class GenericServletpublic void destroy()
destroy in interface Servletdestroy in class GenericServlet
public void doGet(HttpServletRequest request,
HttpServletResponse response)
throws ServletException,
IOException
doGet in class HttpServletrequest - requestresponse - response
ServletException
IOException
public void doPost(HttpServletRequest request,
HttpServletResponse response)
throws ServletException,
IOException
- Optionally create Session
- Check database connection
- LoginInfo from request?
- Yes: DoLogin success ?
- Yes: return (second) preferences page
- No: return (first) user/password page
- No: User Principal ?
- Yes: DoLogin success ?
- Yes: return (second) preferences page
- No: return (first) user/password page
- No: return (first) user/password page
doPost in class HttpServletrequest - requestresponse - response
ServletException
IOException
|
Adempiere 3.5.2a | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||