edu.mssm.crover.scentral
Class ForgottenPassword

java.lang.Object
  |
  +--javax.servlet.GenericServlet
        |
        +--javax.servlet.http.HttpServlet
              |
              +--edu.mssm.crover.scentral.ForgottenPassword
All Implemented Interfaces:
java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

public class ForgottenPassword
extends javax.servlet.http.HttpServlet

Servlet that sends the password by email to users that forgot it.

  • By default (action==null), presents a page that propose the user to send him/her an email with the password displayed within the body.
  • When action=send, actually sends this email.

    See Also:
    Serialized Form

    Field Summary
    static java.lang.String title
               
     
    Constructor Summary
    ForgottenPassword()
               
     
    Method Summary
     void doGet(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
               
     void doPost(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
               
     long getLastModified(javax.servlet.http.HttpServletRequest request)
               
     org.apache.ecs.Document getNewDoc(ServletCentral sc, javax.servlet.http.HttpSession session)
               
     void proposeToSend(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, ServletCentral sc, org.apache.ecs.Document doc, java.lang.String message)
               
     void tellItWasSent(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, ServletCentral sc, org.apache.ecs.Document doc, boolean sent)
               
     
    Methods inherited from class javax.servlet.http.HttpServlet
    doDelete, doHead, doOptions, doPut, doTrace, 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

    title

    public static java.lang.String title
    Constructor Detail

    ForgottenPassword

    public ForgottenPassword()
    Method Detail

    doPost

    public void doPost(javax.servlet.http.HttpServletRequest request,
                       javax.servlet.http.HttpServletResponse response)
                throws java.io.IOException,
                       javax.servlet.ServletException
    Overrides:
    doPost in class javax.servlet.http.HttpServlet
    java.io.IOException
    javax.servlet.ServletException

    getLastModified

    public long getLastModified(javax.servlet.http.HttpServletRequest request)
    Overrides:
    getLastModified in class javax.servlet.http.HttpServlet

    doGet

    public void doGet(javax.servlet.http.HttpServletRequest request,
                      javax.servlet.http.HttpServletResponse response)
               throws java.io.IOException,
                      javax.servlet.ServletException
    Overrides:
    doGet in class javax.servlet.http.HttpServlet
    java.io.IOException
    javax.servlet.ServletException

    getNewDoc

    public org.apache.ecs.Document getNewDoc(ServletCentral sc,
                                             javax.servlet.http.HttpSession session)

    proposeToSend

    public void proposeToSend(javax.servlet.http.HttpServletRequest request,
                              javax.servlet.http.HttpServletResponse response,
                              ServletCentral sc,
                              org.apache.ecs.Document doc,
                              java.lang.String message)
                       throws java.io.IOException,
                              javax.servlet.ServletException
    java.io.IOException
    javax.servlet.ServletException

    tellItWasSent

    public void tellItWasSent(javax.servlet.http.HttpServletRequest request,
                              javax.servlet.http.HttpServletResponse response,
                              ServletCentral sc,
                              org.apache.ecs.Document doc,
                              boolean sent)


    Copyright @ 2003 Mount Sinai School of Medicine. All Rights Reserved.