@Priority(value=1001) public class BandwidthLimitedResourceRequestValidatorFilter extends AbstractRequestValidatorFilter
| Modifier and Type | Field and Description |
|---|---|
protected net.sf.ehcache.CacheManager |
_cacheManager |
protected net.sf.ehcache.Cache |
_requestsByIPCache |
protected static int |
MAX_IPS_IN_CACHE |
protected static int |
MAX_REQUESTS |
protected static String |
REQUESTS_BY_IP_CACHE_ID |
protected static int |
TIMEFRAME |
FILTER_DEBUG_SYSTEM_PROPERTY| Constructor and Description |
|---|
BandwidthLimitedResourceRequestValidatorFilter(BandwidthLimitedConfiguration configuration)
Class constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
filter(javax.ws.rs.container.ContainerRequestContext requestContext) |
protected String |
getSecurityScheme() |
errorResponseprotected static final String REQUESTS_BY_IP_CACHE_ID
protected static final int MAX_IPS_IN_CACHE
protected static final int MAX_REQUESTS
protected static final int TIMEFRAME
protected net.sf.ehcache.CacheManager _cacheManager
protected net.sf.ehcache.Cache _requestsByIPCache
@Inject public BandwidthLimitedResourceRequestValidatorFilter(BandwidthLimitedConfiguration configuration)
protected String getSecurityScheme()
getSecurityScheme in class AbstractFilterpublic void filter(javax.ws.rs.container.ContainerRequestContext requestContext)
throws IOException
IOExceptionCopyright © 2014. All rights reserved.