API Overview API Index Package Overview Direct link to this page
JavaOnTracks 0.1.2
  net.jot.web. JOTRequestCounter View Source
Author(s)
tcolar
Since
Version
Serial
Hierarchy
 Object
      JOTRequestCounter
Implements
Subclasses
Description
public class JOTRequestCounter
Use to "throttle" requests You create a counter with a unique name and how many minutes it stores data for (in memory) then call addRequest() to count how many request for this IP, in the time span.
See also:   
Constructors
public JOTRequestCounter (int minutes)
Methods
Hide/Show inherited methods
public int countRequest (HttpServletRequest request)
  Count a request and returns how many from this IP in the timespan(including this one)
Fields
Hide/Show inherited fields
pack-private int minutes
pack-private Hashtable table
pack-private long tableDate
Nested Classes
Generated By: JavaOnTracks Doclet 0.1.5     ©Thibaut Colar