users@jsr311.java.net

Re: Matching requests to subresource methos

From: Sergey Beryozkin <sergey.beryozkin_at_iona.com>
Date: Fri, 7 Mar 2008 15:45:57 -0000

Hi,

Thanks for the clarification on ProduceMime.

> I think, for "/bar/" it's right, because the condition for the break is:
> If U is null or ‘/’ go to step 3.

My reading of the spec is that no match would be found when a " GET /bar/"
request is issued to

@Path("/")
class SomeClass {

@GET
@Path("bar")
public Bars getBars() {}
}

@Path("bar")
public SomeClass getBarsLocator() {}
  return this;
}

}

as getBars() will be eliminated due to a final matching group containing "/".
getBarsLocator() will be selected instead but no resource method will be found with a URITemplate matching '/'

Do you agree ?

Thanks, Sergey

----------------------------
IONA Technologies PLC (registered in Ireland)
Registered Number: 171387
Registered Address: The IONA Building, Shelbourne Road, Dublin 4, Ireland