title: @WebFilter different init param for different type
body: <p>I'm in the middle of migrating Servlet 2.5 based webapp to Servlet 3.0 and ran into this problem that I do not know how to squeeze these different filter-mappings into one <code>@WebFilter</code> annotation for the class.</p>
  
  <p>Filters:</p>
  
  <pre><code>&lt;!-- Day is 12 hours, so if we update at night the new content will be fetched first     thing in the morning --&gt;
  &lt;filter&gt;
      &lt;filter-name&gt;CacheForDay&lt;/filter-name&gt;
      &lt;filter-class&gt;x.web.client.filter.CacheHeaderFilter&lt;/filter-class&gt;
      &lt;init-param&gt;
          &lt;param-name&gt;CacheTime&lt;/param-name&gt;
          &lt;param-value&gt;43200&lt;/param-value&gt;
      &lt;/init-param&gt;
  &lt;/filter&gt;
  
  &lt;filter&gt;
      &lt;filter-name&gt;CacheForWeek&lt;/filter-name&gt;
      &lt;filter-class&gt;x.web.client.filter.CacheHeaderFilter&lt;/filter-class&gt;
      &lt;init-param&gt;
          &lt;param-name&gt;CacheTime&lt;/param-name&gt;
          &lt;param-value&gt;604800&lt;/param-value&gt;
      &lt;/init-param&gt;
  &lt;/filter&gt;
  
  &lt;filter&gt;
      &lt;filter-name&gt;CacheForMonth&lt;/filter-name&gt;
      &lt;filter-class&gt;x.web.client.filter.CacheHeaderFilter&lt;/filter-class&gt;
      &lt;init-param&gt;
          &lt;param-name&gt;CacheTime&lt;/param-name&gt;
          &lt;param-value&gt;18144000&lt;/param-value&gt;
      &lt;/init-param&gt;
  &lt;/filter&gt;
  
  &lt;filter&gt;
      &lt;filter-name&gt;noCache&lt;/filter-name&gt;
      &lt;filter-class&gt;x.web.client.filter.CacheHeaderFilter&lt;/filter-class&gt;
      &lt;init-param&gt;
          &lt;param-name&gt;CacheTime&lt;/param-name&gt;
          &lt;param-value&gt;0&lt;/param-value&gt;
      &lt;/init-param&gt;
  &lt;/filter&gt; 
  </code></pre>
  
  <p>Filter-Mappings:</p>
  
  <pre><code>&lt;filter-mapping&gt;
      &lt;filter-name&gt;CacheForDay&lt;/filter-name&gt;
      &lt;url-pattern&gt;*.png&lt;/url-pattern&gt;
    &lt;/filter-mapping&gt;
  
    &lt;filter-mapping&gt;
      &lt;filter-name&gt;CacheForDay&lt;/filter-name&gt;
      &lt;url-pattern&gt;*.gif&lt;/url-pattern&gt;
    &lt;/filter-mapping&gt;
  
    &lt;filter-mapping&gt;
      &lt;filter-name&gt;CacheForDay&lt;/filter-name&gt;
      &lt;url-pattern&gt;*.js&lt;/url-pattern&gt;
    &lt;/filter-mapping&gt;
  
    &lt;filter-mapping&gt;
      &lt;filter-name&gt;CacheForDay&lt;/filter-name&gt;
      &lt;url-pattern&gt;*.css&lt;/url-pattern&gt;
    &lt;/filter-mapping&gt;
  
    &lt;filter-mapping&gt;
      &lt;filter-name&gt;CacheForMonth&lt;/filter-name&gt;
      &lt;url-pattern&gt;*.ico&lt;/url-pattern&gt;
    &lt;/filter-mapping&gt;
  </code></pre>
  
  <p>How can I replace them by <code>@WebFilter</code>?</p>