superviseur.net.servlets
Class LoginHandlerServlet

java.lang.Object
  extended byjavax.servlet.GenericServlet
      extended byjavax.servlet.http.HttpServlet
          extended bysuperviseur.net.servlets.LoginHandlerServlet
All Implemented Interfaces:
java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

public class LoginHandlerServlet
extends javax.servlet.http.HttpServlet

See Also:
Serialized Form

Field Summary
(package private)  TPassword tPassword
           
 
Fields inherited from class javax.servlet.http.HttpServlet
 
Fields inherited from class javax.servlet.GenericServlet
 
Constructor Summary
LoginHandlerServlet()
           
 
Method Summary
protected  boolean allowUser(java.lang.String user, java.lang.String passwd, boolean isAdmin)
           
 void doPost(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res)
           
 void init(javax.servlet.ServletConfig config)
           
protected  boolean isAdmin(java.lang.String login)
           
 
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doGet, doOptions, doPut, doTrace, getLastModified, service, service
 
Methods inherited from class javax.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

tPassword

TPassword tPassword
Constructor Detail

LoginHandlerServlet

public LoginHandlerServlet()
Method Detail

init

public void init(javax.servlet.ServletConfig config)
          throws javax.servlet.ServletException
Throws:
javax.servlet.ServletException

doPost

public void doPost(javax.servlet.http.HttpServletRequest req,
                   javax.servlet.http.HttpServletResponse res)
            throws javax.servlet.ServletException,
                   java.io.IOException
Throws:
javax.servlet.ServletException
java.io.IOException

allowUser

protected boolean allowUser(java.lang.String user,
                            java.lang.String passwd,
                            boolean isAdmin)

isAdmin

protected boolean isAdmin(java.lang.String login)