Package org.eclipse.jetty.servlets
Class CloseableDoSFilter
- java.lang.Object
-
- org.eclipse.jetty.servlets.DoSFilter
-
- org.eclipse.jetty.servlets.CloseableDoSFilter
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.eclipse.jetty.servlets.DoSFilter
DoSFilter.Action, DoSFilter.Listener, DoSFilter.OverLimit, DoSFilter.RateType
-
-
Constructor Summary
Constructors Constructor Description CloseableDoSFilter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
onRequestTimeout(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, java.lang.Thread handlingThread)
Invoked when the request handling exceedsDoSFilter.getMaxRequestMs()
.-
Methods inherited from class org.eclipse.jetty.servlets.DoSFilter
addWhitelistAddress, checkWhitelist, checkWhitelist, clearWhitelist, closeConnection, destroy, doFilter, doFilter, doFilterChain, extractUserId, getDelayMs, getListener, getMaxIdleTrackerMs, getMaxPriority, getMaxRequestMs, getMaxRequestsPerSec, getMaxWaitMs, getName, getThrottledRequests, getThrottleMs, getTooManyCode, getWhitelist, init, isEnabled, isInsertHeaders, isRemotePort, isTrackSessions, removeFromRateTracker, removeWhitelistAddress, setDelayMs, setEnabled, setInsertHeaders, setListener, setMaxIdleTrackerMs, setMaxRequestMs, setMaxRequestsPerSec, setMaxWaitMs, setName, setRemotePort, setThrottledRequests, setThrottleMs, setTooManyCode, setTrackSessions, setWhitelist, startScheduler, stopScheduler, subnetMatch
-
-
-
-
Method Detail
-
onRequestTimeout
protected void onRequestTimeout(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, java.lang.Thread handlingThread)
Description copied from class:DoSFilter
Invoked when the request handling exceedsDoSFilter.getMaxRequestMs()
.By default, an HTTP 503 response is returned and the handling thread is interrupted.
- Overrides:
onRequestTimeout
in classDoSFilter
- Parameters:
request
- the current requestresponse
- the current responsehandlingThread
- the handling thread
-
-