Class CloseableDoSFilter

  • All Implemented Interfaces:
    javax.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 Detail

      • CloseableDoSFilter

        public CloseableDoSFilter()
    • 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 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