DoSFilter (ZXing 3.5.0 API)

com.google.zxing.web

## Class DoSFilter

- java.lang.Object
- - com.google.zxing.web.DoSFilter

- All Implemented Interfaces:
    javax.servlet.Filter
  Direct Known Subclasses:
    ChartDoSFilter, DecodeDoSFilter

      public abstract class DoSFilter
      extends Object
      implements javax.servlet.Filter

  A simplistic `Filter` that rejects requests from hosts that are sending too many requests in too short a time.
  Author:
    Sean Owen

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `DoSFilter()`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `destroy()`
    `void` | `doFilter(javax.servlet.ServletRequest request, javax.servlet.ServletResponse response, javax.servlet.FilterChain chain)`
    `void` | `init(javax.servlet.FilterConfig filterConfig)`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### DoSFilter

          public DoSFilter()

  - ### Method Detail

    - #### init

          public void init(javax.servlet.FilterConfig filterConfig)

      Specified by:
        `init` in interface `javax.servlet.Filter`

    - #### doFilter

          public void doFilter(javax.servlet.ServletRequest request,
                               javax.servlet.ServletResponse response,
                               javax.servlet.FilterChain chain)
                        throws IOException,
                               javax.servlet.ServletException

      Specified by:
        `doFilter` in interface `javax.servlet.Filter`
      Throws:
        `IOException`
        `javax.servlet.ServletException`

    - #### destroy

          public void destroy()

      Specified by:
        `destroy` in interface `javax.servlet.Filter`

Copyright © 2007–2022. All rights reserved.