TimeoutFilter (ZXing 3.5.2 API)
Description: declaration: package: com.google.zxing.web, class: TimeoutFilter

Package com.google.zxing.web

# Class TimeoutFilter

java.lang.Object
com.google.zxing.web.TimeoutFilter

All Implemented Interfaces:
  `jakarta.servlet.Filter`

@WebFilter(urlPatterns="/w/decode", initParams=@WebInitParam(name="timeoutSec",value="10")) public final class TimeoutFilter extends Object implements jakarta.servlet.Filter
Protect the decode endpoint from long-running requests.

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `TimeoutFilter()`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `void`
  `destroy()`
  `void`
  `doFilter(jakarta.servlet.ServletRequest request, jakarta.servlet.ServletResponse response, jakarta.servlet.FilterChain chain)`
  `void`
  `init(jakarta.servlet.FilterConfig filterConfig)`

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

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

- ## Constructor Details

  - ### TimeoutFilter

    public TimeoutFilter()

- ## Method Details

  - ### init

    public void init(jakarta.servlet.FilterConfig filterConfig)
    Specified by:
      `init` in interface `jakarta.servlet.Filter`

  - ### doFilter

    public void doFilter(jakarta.servlet.ServletRequest request, jakarta.servlet.ServletResponse response, jakarta.servlet.FilterChain chain) throws IOException, jakarta.servlet.ServletException
    Specified by:
      `doFilter` in interface `jakarta.servlet.Filter`
    Throws:
      `IOException`
      `jakarta.servlet.ServletException`

  - ### destroy

    public void destroy()
    Specified by:
      `destroy` in interface `jakarta.servlet.Filter`