Skip to content

Commit 52caecb

Browse files
author
planetlevel
committed
update Javadoc
1 parent 6b0a6aa commit 52caecb

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

src/main/java/org/owasp/esapi/filters/RequestRateThrottleFilter.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,11 @@
2929
import javax.servlet.http.HttpSession;
3030

3131
/**
32-
* Servlet filter class.
32+
* A simple servlet filter that limits the request rate to a certain threshold of requests per second.
33+
* The default rate is 5 hits in 10 seconds. This can be overridden in the web.xml file by adding
34+
* parameters named "hits" and "period" with the desired values. When the rate is exceeded, a short
35+
* string is written to the response output stream and the chain method is not invoked. Otherwise,
36+
* processing proceeds as normal.
3337
*/
3438
public class RequestRateThrottleFilter implements Filter
3539
{

0 commit comments

Comments
 (0)