title: Case-insensitive URLs with JAX-RS
body: <p>Is there any easy way to provide a case-insensitive URLs in a JAX-RS web service? The goal of this is to produce a web service which is a "lenient acceptor."<sup>1</sup></p>
  
  <p>I imagine it's possible to do this with a filter which <code>.to[Lower|Upper]Case()</code>s all incoming URLs. Unfortunately, this implementation demands programmer discipline/consistency in making sure that <em>all</em> hard-coded URL strings in the application are strictly [lower|upper]case.<br>
   Also, I don't yet know the JAX-RS analog to a servlet filter.</p>
  
  <p>If it matters, I'm using Jersey as my JAX-RS implementation.</p>
  
  <hr>
  
  <p><sub><sup>1</sup>As in, <em>"be lenient in what you accept, and strict in what you produce"</em> (can't recall the source)</sub></p>