Class SessionRefreshServlet

java.lang.Object
jakarta.servlet.GenericServlet
jakarta.servlet.http.HttpServlet
All Implemented Interfaces:
jakarta.servlet.Servlet, jakarta.servlet.ServletConfig, Serializable

@Component public class SessionRefreshServlet extends AbstractJsonServlet
Returns a JSON object containing the following information: - success (true, if a known principal currently is logged in (not anonymous)) - timeout (how long the session is valid (in minutes)) This servlet actually doesn't refresh the session. This is done in the AuthenticationFilter. This servlet only returns the information.
See Also:
  • Constructor Details

  • Method Details

    • processRequest

      protected void processRequest(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse resp) throws jakarta.servlet.ServletException, IOException
      Specified by:
      processRequest in class AbstractJsonServlet
      Throws:
      jakarta.servlet.ServletException
      IOException