dev@jersey.java.net

ServletAdaptor mapping url-pattern

From: Nam Nguyen <Nam.Nguyen_at_Sun.COM>
Date: Tue, 17 Jul 2007 10:19:29 -0700

Hi,

Currently tool generates a fixed (non-configurable) value for this
servlet-mapping/url-pattern:

        <url-pattern>/restbeans/*</url-pattern>
(we will change this to '/resources/*' matching the new jersey
SimpleServlet sample)

The effect is that RESTful application's URL space has to include
"restbeans", e.g.:

    http://www.acme.com/BookStore/restbeans/books/12345

This is kind of undesirable compared with just:

    http://www.acme.com/BookStore/books/12345

We wonder if we could just use:
        <url-pattern>/*</url-pattern>
so the latter URL is possible.

Thanks,

-Nam