Class LoginServlet
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
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, serviceMethods inherited from class javax.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, init, log, logMethods 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.IOExceptionMethod doPost.- Overrides:
doPostin classjavax.servlet.http.HttpServlet- Parameters:
request- The request include the content of Login form at the moment of Account's authentication.response-- Throws:
javax.servlet.ServletExceptionjava.io.IOException
-
doGet
public void doGet(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, java.io.IOException- Overrides:
doGetin classjavax.servlet.http.HttpServlet- Parameters:
request-response-- Throws:
javax.servlet.ServletExceptionjava.io.IOException
-