public class UsageValidator
extends java.lang.Object
This check should probably be refined in the future.
Note that a map is used to keep track of the last request times. Eventually this map could take up quite a bit of memory if old requests are never cleared out.
Modifier and Type | Method and Description |
---|---|
static UsageValidator |
getInstance()
Get singleton instance.
|
void |
validateUsage(StandardParameters stdParameters)
Makes sure that usage doesn't exceed limits.
|
public static UsageValidator getInstance()
public void validateUsage(StandardParameters stdParameters) throws javax.ws.rs.WebApplicationException
Probably should be refined in the future.
stdParameters
- javax.ws.rs.WebApplicationException