Interface Limiter

  • All Known Implementing Classes:
    RequestLimiter

    public interface Limiter
    Checks if request is allowed by this limiter.
    Author:
    antons
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      boolean allow​(javax.servlet.ServletRequest request)
      Returns true if limiter allow filter processing
      boolean allowResponseStatus​(javax.servlet.ServletRequest request, int status)
      Returns true if limiter allow filter processing after cain execution.
    • Method Detail

      • allow

        boolean allow​(javax.servlet.ServletRequest request)
        Returns true if limiter allow filter processing
        Parameters:
        request - request to check
        Returns:
        true is filter should be processed.
      • allowResponseStatus

        boolean allowResponseStatus​(javax.servlet.ServletRequest request,
                                    int status)
        Returns true if limiter allow filter processing after cain execution. This variant can be used after chanin prpocessing when status code is known.
        Parameters:
        request - request to check
        status - response status to check
        Returns:
        true is filter should be processed.