Package sk.antons.web.filter.limiter
Interface Limiter
-
- All Known Implementing Classes:
RequestLimiter
public interface LimiterChecks if request is allowed by this limiter.- Author:
- antons
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanallow(javax.servlet.ServletRequest request)Returns true if limiter allow filter processingbooleanallowResponseStatus(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 checkstatus- response status to check- Returns:
- true is filter should be processed.
-
-