Class CloseableDoSFilter

java.lang.Object
org.eclipse.jetty.ee10.servlets.DoSFilter
org.eclipse.jetty.ee10.servlets.CloseableDoSFilter
All Implemented Interfaces:
jakarta.servlet.Filter

public class CloseableDoSFilter extends DoSFilter
This is an extension to DoSFilter that uses Jetty APIs to abruptly close the connection when the request times out.
  • Constructor Details

    • CloseableDoSFilter

      public CloseableDoSFilter()
  • Method Details

    • onRequestTimeout

      protected void onRequestTimeout(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, Thread handlingThread)
      Description copied from class: DoSFilter
      Invoked when the request handling exceeds DoSFilter.getMaxRequestMs().

      By default, an HTTP 503 response is returned and the handling thread is interrupted.

      Overrides:
      onRequestTimeout in class DoSFilter
      Parameters:
      request - the current request
      response - the current response
      handlingThread - the handling thread