Class LogIn
java.lang.Object
jakarta.servlet.GenericServlet
jakarta.servlet.http.HttpServlet
me.nickhanson.codeforge.controller.LogIn
- All Implemented Interfaces:
jakarta.servlet.Servlet,jakarta.servlet.ServletConfig,Serializable,PropertiesLoader
@WebServlet(urlPatterns="/logIn")
public class LogIn
extends jakarta.servlet.http.HttpServlet
implements PropertiesLoader
Servlet that handles routing users to the AWS Cognito hosted login page.
- Author:
- Nick Hanson
- See Also:
-
Field Summary
Fields inherited from class jakarta.servlet.http.HttpServlet
LEGACY_DO_HEAD -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class jakarta.servlet.http.HttpServlet
doDelete, doHead, doOptions, doPost, doPut, doTrace, getLastModified, init, service, serviceMethods inherited from class jakarta.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, log, logMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface me.nickhanson.codeforge.config.PropertiesLoader
loadProperties
-
Constructor Details
-
LogIn
public LogIn()
-
-
Method Details
-
init
public void init() throws jakarta.servlet.ServletException- Overrides:
initin classjakarta.servlet.GenericServlet- Throws:
jakarta.servlet.ServletException
-
doGet
protected void doGet(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse resp) throws jakarta.servlet.ServletException, IOException Route to the aws-hosted cognito login page.- Overrides:
doGetin classjakarta.servlet.http.HttpServlet- Parameters:
req- servlet requestresp- servlet response- Throws:
jakarta.servlet.ServletException- - if a servlet-specific error occursIOException- - if an I/O error occurs
-