net.i2p.servlet.filters

## Class XSSFilter

- java.lang.Object
- - net.i2p.servlet.filters.XSSFilter

- All Implemented Interfaces:
    Filter

      public class XSSFilter
      extends Object
      implements Filter

  Filter to prevent XSS attacks.

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `XSSFilter()`

  - ### Method Summary

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

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

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

- - ### Constructor Detail

    - #### XSSFilter

          public XSSFilter()

  - ### Method Detail

    - #### destroy

          public void destroy()

      Specified by:
        `destroy` in interface `Filter`

    - #### doFilter

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

      Specified by:
        `doFilter` in interface `Filter`
      Throws:
        `IOException`
        `ServletException`

    - #### init

          public void init(FilterConfig filterConfig)
                    throws ServletException

      Specified by:
        `init` in interface `Filter`
      Throws:
        `ServletException`