AHA
Class PasswordConfig

java.lang.Object
  |
  +--javax.servlet.GenericServlet
        |
        +--javax.servlet.http.HttpServlet
              |
              +--AHA.AhaServlet
                    |
                    +--AHA.PasswordConfig

public class PasswordConfig
extends AhaServlet

The PasswordConfig class is a servlet that lets the user change his/her password.

See Also:
Serialized Form

Fields inherited from class AHA.AhaServlet
AHA, Background, Course, Host, HtDocs, Language, loginid, Logs, out, Port, referer, Title, UserModel
 
Constructor Summary
PasswordConfig()
           
 
Method Summary
 void changeConfig(CgiUtil Util)
          This method reads input from a POST request and replaces the user model by the values contained in the request.
 void genConfig(java.lang.String ChangeCgi)
          This method writes out the password as an HTML form that can be used for changing the password.
 void init(javax.servlet.ServletConfig config)
           
protected  void service(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
           
 
Methods inherited from class AHA.AhaServlet
getName, initService, printInfo, redirect
 
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doGet, doOptions, doPost, doPut, doTrace, getLastModified, service
 
Methods inherited from class javax.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, init, log, log
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PasswordConfig

public PasswordConfig()
Method Detail

init

public void init(javax.servlet.ServletConfig config)
          throws javax.servlet.ServletException
Overrides:
init in class AhaServlet

service

protected void service(javax.servlet.http.HttpServletRequest request,
                       javax.servlet.http.HttpServletResponse response)
Overrides:
service in class AhaServlet

genConfig

public void genConfig(java.lang.String ChangeCgi)
This method writes out the password as an HTML form that can be used for changing the password. There is one String parameter: a URL for the script or servlet to handle the submitted form.

changeConfig

public void changeConfig(CgiUtil Util)
                  throws AhaException
This method reads input from a POST request and replaces the user model by the values contained in the request. The form for this POST request is supposed to be the one generated by the "genConfig" method. There is a string parameter which contains the title for the generated HTML page.
Throws:
AhaException - Thrown when the password-change is not accepted.