Interface RateLimitingManager

All Superinterfaces:
io.vertigo.core.node.component.Component, io.vertigo.core.node.component.CoreComponent, io.vertigo.core.node.component.Manager
All Known Implementing Classes:
RateLimitingManagerImpl

public interface RateLimitingManager extends io.vertigo.core.node.component.Manager
Manager of Rate limiting.
Author:
npiedeloup
  • Method Details

    • isActive

      boolean isActive()
      Returns:
      true if rateLimiting is active (for fast by-pass)
    • preHandle

      boolean preHandle(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) throws IOException
      Prehandle request.
      Parameters:
      request - HttpRequest
      response - HttpResponse
      Returns:
      true if request should be managed, false to stop response
      Throws:
      IOException
    • cancelBanishment

      void cancelBanishment(String userKey)
      Cancel banishment of a userkey.
      Parameters:
      userKey - user key to reset
    • cancelAllBanishments

      void cancelAllBanishments()
      Cancel all banishments.
    • getBanishments

      Map<String,Instant> getBanishments()
      Returns:
      current banished userKey