Class FSConsentHandler

  • All Implemented Interfaces:
    jakarta.servlet.Servlet, jakarta.servlet.ServletConfig, Serializable

    public class FSConsentHandler
    extends jakarta.servlet.http.HttpServlet
    This servlet redirects the request to the introduction URL or the provider home page URL based on the action in the request.
    See Also:
    Serialized Form
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected void doGet​(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response)
      Handles the HTTP GET method.
      protected void doPost​(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response)
      Handles the HTTP POST method.
      protected void processRequest​(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response)
      Processes requests for both HTTP GET and POST methods.
      • Methods inherited from class jakarta.servlet.http.HttpServlet

        doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, service
      • Methods inherited from class jakarta.servlet.GenericServlet

        destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, init, log, log
    • Constructor Detail

      • FSConsentHandler

        public FSConsentHandler()
    • Method Detail

      • processRequest

        protected void processRequest​(jakarta.servlet.http.HttpServletRequest request,
                                      jakarta.servlet.http.HttpServletResponse response)
                               throws jakarta.servlet.ServletException,
                                      IOException
        Processes requests for both HTTP GET and POST methods. Redirects to provider URL if the action is cancel or to the introduction URL.
        Parameters:
        request - the HttpServletRequest object.
        response - the HttpServletResponse object.
        Throws:
        jakarta.servlet.ServletException - if the request could not be handled.
        IOException - if an input or output error occurs.
      • doGet

        protected void doGet​(jakarta.servlet.http.HttpServletRequest request,
                             jakarta.servlet.http.HttpServletResponse response)
                      throws jakarta.servlet.ServletException,
                             IOException
        Handles the HTTP GET method.
        Overrides:
        doGet in class jakarta.servlet.http.HttpServlet
        Parameters:
        request - the HttpServletRequest object.
        response - the HttpServletResponse object.
        Throws:
        jakarta.servlet.ServletException - if the request could not be handled.
        IOException - if an input or output error occurs.
      • doPost

        protected void doPost​(jakarta.servlet.http.HttpServletRequest request,
                              jakarta.servlet.http.HttpServletResponse response)
                       throws jakarta.servlet.ServletException,
                              IOException
        Handles the HTTP POST method.
        Overrides:
        doPost in class jakarta.servlet.http.HttpServlet
        Parameters:
        request - the HttpServletRequest object.
        response - the HttpServletResponse object.
        Throws:
        jakarta.servlet.ServletException - if the request could not be handled.
        IOException - if an input or output error occurs.