code: public void init(FilterConfig filterConfig) throws ServletException {
  
      this.filterConfig = filterConfig;
      this.encoding = filterConfig.getInitParameter("encoding");
      String value = filterConfig.getInitParameter("ignore");
      if (value == null)
        this.ignore = true;
      else if (value.equalsIgnoreCase("true"))
        this.ignore = true;
      else if (value.equalsIgnoreCase("yes"))
        this.ignore = true;
      else
        this.ignore = false;
  
    }
docs: Place this filter into service.
  
  @param filterConfig The filter configuration object