DoSFilter.FixedRateTracker, DoSFilter.RateTracker
DELAY_MS_INIT_PARAM, ENABLED_INIT_PARAM, INSERT_HEADERS_INIT_PARAM, IP_WHITELIST_INIT_PARAM, MANAGED_ATTR_INIT_PARAM, MAX_IDLE_TRACKER_MS_INIT_PARAM, MAX_REQUEST_MS_INIT_PARAM, MAX_REQUESTS_PER_S_INIT_PARAM, MAX_WAIT_INIT_PARAM, NAME, REMOTE_PORT_INIT_PARAM, THROTTLE_MS_INIT_PARAM, THROTTLED_REQUESTS_INIT_PARAM, TOO_MANY_CODE, TRACK_SESSIONS_INIT_PARAM
Constructor and Description |
---|
CloseableDoSFilter() |
Modifier and Type | Method and Description |
---|---|
protected void |
onRequestTimeout(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
java.lang.Thread handlingThread)
Invoked when the request handling exceeds
DoSFilter.getMaxRequestMs() . |
addToRateTracker, addWhitelistAddress, checkWhitelist, checkWhitelist, clearWhitelist, closeConnection, destroy, doFilter, doFilter, doFilterChain, extractUserId, getDelayMs, getMaxIdleTrackerMs, getMaxPriority, getMaxRequestMs, getMaxRequestsPerSec, getMaxWaitMs, getName, getPriority, getRateTracker, getThrottledRequests, getThrottleMs, getTooManyCode, getWhitelist, init, isEnabled, isInsertHeaders, isRemotePort, isTrackSessions, removeFromRateTracker, removeWhitelistAddress, schedule, setDelayMs, setEnabled, setInsertHeaders, setMaxIdleTrackerMs, setMaxRequestMs, setMaxRequestsPerSec, setMaxWaitMs, setName, setRemotePort, setThrottledRequests, setThrottleMs, setTooManyCode, setTrackSessions, setWhitelist, startScheduler, stopScheduler, subnetMatch
protected void onRequestTimeout(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, java.lang.Thread handlingThread)
DoSFilter
DoSFilter.getMaxRequestMs()
.
By default, a HTTP 503 response is returned and the handling thread is interrupted.
onRequestTimeout
in class DoSFilter
request
- the current requestresponse
- the current responsehandlingThread
- the handling thread