title: Get configured url patterns in a Java Filter
body: <p>I cannot find a way to get the url-mapping information inside a filter. </p>
  
  <p>For instance, web.xml:</p>
  
  <pre><code>&lt;filter&gt;
      &lt;filter-name&gt;someFilter&lt;/filter-name&gt;
      &lt;filter-class&gt;com.xxx.filter.SomeFilter&lt;/filter-class&gt;
  &lt;/filter&gt;
  
  &lt;filter-mapping&gt;
      &lt;filter-name&gt;someFilter&lt;/filter-name&gt;
      &lt;url-pattern&gt;/ws/*&lt;/url-pattern&gt;
  &lt;/filter-mapping&gt;
  
  &lt;filter-mapping&gt;
      &lt;filter-name&gt;someFilter&lt;/filter-name&gt;
      &lt;url-pattern&gt;/rest/*&lt;/url-pattern&gt;
  &lt;/filter-mapping&gt;
  </code></pre>
  
  <p>Then inside SomeFilter I would like to get a list of the mappings ["/ws/<em>","/rest/</em>"]. Is there a way to get it?</p>
  
  <pre><code>@Override 
  public void init(FilterConfig filterConfig){
      filterConfig.getXXX() // -&gt; ["/ws/*","/rest/*"]???
  }
  </code></pre>