title: RestEasy @ApplicationPath using a pattern
body: <p>I am trying to use RestEasy and Jax-Rs to route requests to the proper resources in a Java application. However, I am having trouble with using the @ApplicationPath annotation. I want to pass in a pattern and have it route anything matching that pattern to the proper place </p>
  
  <p>I have tried this:</p>
  
  <pre><code>@ApplicationPath("*/rest/v1/")...
  </code></pre>
  
  <p>and I could route a path such as:</p>
  
  <pre><code>/MyApplication/rest/v1/
  </code></pre>
  
  <p>or</p>
  
  <pre><code>/AnotherApp/rest/v1/
  </code></pre>
  
  <p>to the same application.</p>
  
  <p>However, RestEasy gives me a 404 that it can't match the resource, but if I hardcode a path without the */ it works fine. Is it possible to put a pattern like this in the @ApplicationPath?</p>
  
  <p>EDIT: </p>
  
  <p>The whole purpose of this was to make the root path of the application configurable and having it run through a filter to check the configuration. But if there is perhaps a way of configuring the @ApplicationPath at runtime that would be an even better solution. </p>