com.google.zxing.web

## Class RedirectFilter

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

- All Implemented Interfaces:
    javax.servlet.Filter

      @WebFilter(value="/*")
      public final class RedirectFilter
      extends Object
      implements javax.servlet.Filter

  A `Filter` which handles a few web app redirects, like redirecting `/` to the main page.

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `RedirectFilter()`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `destroy()`
    `void` | `doFilter(javax.servlet.ServletRequest servletRequest, javax.servlet.ServletResponse servletResponse, javax.servlet.FilterChain filterChain)`
    `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

    - #### RedirectFilter

          public RedirectFilter()

  - ### 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 servletRequest,
                               javax.servlet.ServletResponse servletResponse,
                               javax.servlet.FilterChain filterChain)
                        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–2016. All rights reserved.