Adempiere 3.5.2a

org.compiere.www
Class WLogin

java.lang.Object
  extended by javax.servlet.GenericServlet
      extended by javax.servlet.http.HttpServlet
          extended by org.compiere.www.WLogin
All Implemented Interfaces:
Serializable, Servlet, ServletConfig

public class WLogin
extends HttpServlet

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
  

Version:
$Id: WLogin.java,v 1.3 2006/07/30 00:53:21 jjanke Exp $
Author:
Jorg Janke
See Also:
Serialized Form

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

log

protected CLogger log
Logger


P_ROLE

protected static final String P_ROLE
See Also:
Constant Field Values

P_CLIENT

protected static final String P_CLIENT
See Also:
Constant Field Values

P_ORG

protected static final String P_ORG
See Also:
Constant Field Values

P_DATE

protected static final String P_DATE
See Also:
Constant Field Values

P_WAREHOUSE

protected static final String P_WAREHOUSE
See Also:
Constant Field Values

P_ERRORMSG

protected static final String P_ERRORMSG
See Also:
Constant Field Values

P_STORE

protected static final String P_STORE
See Also:
Constant Field Values
Constructor Detail

WLogin

public WLogin()
Method Detail

init

public void init(ServletConfig config)
          throws ServletException
Initialize

Specified by:
init in interface Servlet
Overrides:
init in class GenericServlet
Parameters:
config - confif
Throws:
ServletException

getServletInfo

public String getServletInfo()
Get Servlet information

Specified by:
getServletInfo in interface Servlet
Overrides:
getServletInfo in class GenericServlet
Returns:
servlet info

destroy

public void destroy()
Clean up

Specified by:
destroy in interface Servlet
Overrides:
destroy in class GenericServlet

doGet

public void doGet(HttpServletRequest request,
                  HttpServletResponse response)
           throws ServletException,
                  IOException
Process the HTTP Get request - forward to Post

Overrides:
doGet in class HttpServlet
Parameters:
request - request
response - response
Throws:
ServletException
IOException

doPost

public void doPost(HttpServletRequest request,
                   HttpServletResponse response)
            throws ServletException,
                   IOException
Process the HTTP Post request.
  - 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
  

Overrides:
doPost in class HttpServlet
Parameters:
request - request
response - response
Throws:
ServletException
IOException

Adempiere 3.5.2a

Adempiere® is a registered trademark of ADempiere Business Inc. ©2004-2008 HumanFlash.com All rights reserved.