org.eclipse.jetty.servlets
Class CloseableDoSFilter
java.lang.Object
org.eclipse.jetty.servlets.DoSFilter
org.eclipse.jetty.servlets.CloseableDoSFilter
- All Implemented Interfaces:
- Filter
public class CloseableDoSFilter
- extends DoSFilter
Closeable DoS Filter.
This is an extension to the DoSFilter
that uses Jetty APIs to allow
connections to be closed cleanly.
Fields inherited from class org.eclipse.jetty.servlets.DoSFilter |
_delayMs, _insertHeaders, _maxIdleTrackerMs, _maxRequestMs, _maxRequestsPerSec, _passes, _queue, _rateTrackers, _remotePort, _throttleMs, _trackSessions, _waitMs |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CloseableDoSFilter
public CloseableDoSFilter()
closeConnection
protected void closeConnection(HttpServletRequest request,
HttpServletResponse response,
Thread thread)
- Description copied from class:
DoSFilter
- Takes drastic measures to return this response and stop this thread.
Due to the way the connection is interrupted, may return mixed up headers.
- Overrides:
closeConnection
in class DoSFilter
- Parameters:
request
- current requestresponse
- current response, which must be stoppedthread
- the handling thread
Copyright © 1995-2009 Mort Bay Consulting. All Rights Reserved.