Backend API. Server-side code: this runs in a Codename One backend, not in the app on the device.
public final class RateLimitFilter
- Object
- RateLimitFilter
ImplementsSecurityFilter
Answers 429 to a request that is over one of the chain’s rate limits; see
HttpSecurity.rateLimit.
A chain has up to two of these. The limits whose key a request has from the start – its client’s address, its session – are applied by the first filter of the chain, before the session is read or a password hashed. The ones whose key is who signed in are applied once that is known.
Methods
public HttpServer.Response doFilter(HttpServer.Request request, FilterChain chain)
throws Exception | The answer to request; null when nothing under the chain routes it, which the server answers 404. |
Inherited methods
Method details
doFilter
public HttpServer.Response doFilter(HttpServer.Request request, FilterChain chain)
throws ExceptionThe answer to
request; null when nothing under the chain routes it,
which the server answers 404.