users@jax-rs-spec.java.net

[jax-rs-spec users] [jsr339-experts] Re: Matching algorithm doesn't recurse back on Locators

From: Bill Burke <bburke_at_redhat.com>
Date: Thu, 16 May 2013 23:41:24 -0400

Let me give you an example:

Given this request:

OPTIONS /sub

This will match:

@Path("/")
class Resource {

    @Path("{id}")
    public Locator locator() { return new Locator();}

}

class Locator {

    @OPTIONS
    public String options() { return "OK"; }
}

But this won't match:

@Path("/")
class Resource {

    @GET
    @Path("sub")
    public String get() { return "OK"; }

    @Path("{id}")
    public Locator locator() { return new Locator();}

}





On 5/16/2013 10:38 PM, Bill Burke wrote:
> Section 3.7
>
> IMO, Step 3(a) should jump back to 2(i) before throwing an exception.
> Maybe its too late to change this. This would allow the base resource
> to override the locator with more specific mappings otherwise you can't
> do this.
>
> Bill
>

-- 
Bill Burke
JBoss, a division of Red Hat
http://bill.burkecentral.com