dev@jsr311.java.net

expanded regexp and subresource locators

From: Bill Burke <bburke_at_redhat.com>
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:


@Path("{foo:.*}")
public Object find(@PathParam("foo") String foo)
{
    return new Bar();
}


public class Bar {

    @Path("a/b/c")
    @GET
    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
http://bill.burkecentral.com