Interface ThrottledRequestFilter

All Superinterfaces:
org.springframework.core.Ordered
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface ThrottledRequestFilter extends org.springframework.core.Ordered
Since:
6.4.0
  • Field Summary

    Fields inherited from interface org.springframework.core.Ordered

    HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
  • Method Summary

    Modifier and Type
    Method
    Description
    default int
     
    Filer that only supports POST requests.
    boolean
    supports(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response)
    Determine if this request should be supported.
  • Method Details

    • httpPost

      static ThrottledRequestFilter httpPost()
      Filer that only supports POST requests.
      Returns:
      the throttled request filter
    • supports

      boolean supports(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response)
      Determine if this request should be supported.
      Parameters:
      request - the request
      response - the response
      Returns:
      true/false
    • getOrder

      default int getOrder()
      Specified by:
      getOrder in interface org.springframework.core.Ordered