expanded regexp and subresource locators

From: Bill Burke <>
Date: Sat, 12 Jul 2008 16:57:44 -0400

Was thinking more about our possible regexp expansion. One thing that
screws it up is Subresource Locators. For example:

public Object find(@PathParam("foo") String foo)
    return new Bar();

public class Bar {

    public String get() {}

Let's say the HTTP request is:

GET /a/bunch/of/stuff/a/b/c

@PathParam foo would always eat up the whole URI.

This is yet another thing I dislike about dynamic Subresource locators.
   If you don't remember I also talked about the problem of not being
able to authenticate before invoking on the resource locator since you
would need @RolesAllowed available.

Bill Burke
JBoss, a division of Red Hat