Package org.apereo.cas.throttle
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
This is
ThrottledRequestFilter.- Since:
- 6.4.0
-
Field Summary
Fields inherited from interface org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE -
Method Summary
Modifier and TypeMethodDescriptiondefault intgetOrder()static ThrottledRequestFilterhttpPost()Filer that only supports POST requests.booleansupports(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) Determine if this request should be supported.
-
Method Details
-
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 requestresponse- the response- Returns:
- true/false
-
getOrder
default int getOrder()- Specified by:
getOrderin interfaceorg.springframework.core.Ordered
-