Class OverridingServlet

java.lang.Object
jakarta.servlet.GenericServlet
jakarta.servlet.http.HttpServlet
eu.rarogsoftware.rarog.platform.plugins.func.test.OverridingServlet
All Implemented Interfaces:
AuthorizationManagerAware, CsrfProtectionAware, jakarta.servlet.Servlet, jakarta.servlet.ServletConfig, Serializable

@Component public class OverridingServlet extends jakarta.servlet.http.HttpServlet implements AuthorizationManagerAware, CsrfProtectionAware
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)
     
    protected void
    doPost(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse resp)
     
    Optional<org.springframework.security.authorization.AuthorizationManager<org.springframework.security.web.access.intercept.RequestAuthorizationContext>>
    getAuthorizationManager(jakarta.servlet.http.HttpServletRequest request)
     
    shouldDisableCsrfProtection(jakarta.servlet.http.HttpServletRequest request)
     

    Methods inherited from class jakarta.servlet.http.HttpServlet

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

    Methods inherited from class jakarta.servlet.GenericServlet

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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • OverridingServlet

      public OverridingServlet()
  • Method Details

    • doGet

      protected void doGet(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse resp) throws IOException
      Overrides:
      doGet in class jakarta.servlet.http.HttpServlet
      Throws:
      IOException
    • doPost

      protected void doPost(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse resp) throws IOException
      Overrides:
      doPost in class jakarta.servlet.http.HttpServlet
      Throws:
      IOException
    • getAuthorizationManager

      public Optional<org.springframework.security.authorization.AuthorizationManager<org.springframework.security.web.access.intercept.RequestAuthorizationContext>> getAuthorizationManager(jakarta.servlet.http.HttpServletRequest request)
      Specified by:
      getAuthorizationManager in interface AuthorizationManagerAware
      Parameters:
      request - request for which decision is taken
      Returns:
      manager if servlet supports request and define custom access rights or empty optional if servlet do not support request or want to use default access rights.
    • shouldDisableCsrfProtection

      public Optional<Boolean> shouldDisableCsrfProtection(jakarta.servlet.http.HttpServletRequest request)
      Specified by:
      shouldDisableCsrfProtection in interface CsrfProtectionAware
      Parameters:
      request - request for which decision is taken
      Returns:
      CSRF protection decision if servlet supports request and want to decide if it supports or not CSRF protection or empty optional if servlet do not support request.