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
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
    doGet(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse resp)
    Route to the aws-hosted cognito login page.
    void
     

    Methods inherited from class jakarta.servlet.http.HttpServlet

    doDelete, doHead, doOptions, doPost, doPut, doTrace, getLastModified, init, service, service

    Methods inherited from class jakarta.servlet.GenericServlet

    destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, log, log

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods 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:
      init in class jakarta.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:
      doGet in class jakarta.servlet.http.HttpServlet
      Parameters:
      req - servlet request
      resp - servlet response
      Throws:
      jakarta.servlet.ServletException - - if a servlet-specific error occurs
      IOException - - if an I/O error occurs