Class ChangePasswordServlet

java.lang.Object
javax.servlet.GenericServlet
javax.servlet.http.HttpServlet
it.unisa.c03.myPersonalTrainer.account.control.ChangePasswordServlet
All Implemented Interfaces:
java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

@WebServlet(name="ChangePassword",
            value="/ChangePassword")
public class ChangePasswordServlet
extends javax.servlet.http.HttpServlet
See Also:
Serialized Form
  • Constructor Summary

    Constructors
    Constructor Description
    ChangePasswordServlet()  
  • Method Summary

    Modifier and Type Method Description
    void doGet​(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
    This method simply recall doPost.
    void doPost​(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
    This method checks the credentials arrived from the request, and calls all the service methods which it needs to change the password.

    Methods inherited from class javax.servlet.http.HttpServlet

    doDelete, doHead, doOptions, doPut, doTrace, getLastModified, 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
  • Constructor Details

    • ChangePasswordServlet

      public ChangePasswordServlet()
  • Method Details

    • doPost

      public void doPost​(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, java.io.IOException
      This method checks the credentials arrived from the request, and calls all the service methods which it needs to change the password.
      Overrides:
      doPost in class javax.servlet.http.HttpServlet
      Parameters:
      request -
      response -
      Throws:
      javax.servlet.ServletException
      java.io.IOException
    • doGet

      public void doGet​(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, java.io.IOException
      This method simply recall doPost.
      Overrides:
      doGet in class javax.servlet.http.HttpServlet
      Parameters:
      request -
      response -
      Throws:
      javax.servlet.ServletException
      java.io.IOException