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

@WebServlet(name="LoginServlet",
            value="/LoginServlet")
public class LoginServlet
extends javax.servlet.http.HttpServlet
Servlet that allow the Account's login.
See Also:
Serialized Form
  • Constructor Summary

    Constructors
    Constructor Description
    LoginServlet()  
  • Method Summary

    Modifier and Type Method Description
    void doGet​(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)  
    protected void doPost​(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
    Method doPost.

    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

    • LoginServlet

      public LoginServlet()
  • Method Details

    • doPost

      protected void doPost​(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, java.io.IOException
      Method doPost.
      Overrides:
      doPost in class javax.servlet.http.HttpServlet
      Parameters:
      request - The request include the content of Login form at the moment of Account's authentication.
      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
      Overrides:
      doGet in class javax.servlet.http.HttpServlet
      Parameters:
      request -
      response -
      Throws:
      javax.servlet.ServletException
      java.io.IOException