I have a general question about resource matching.
Let's say I have the following defects resource implementation
@Path ("defects")
public class {
@GET
public Response readCollection(){ .... }
@GET
@Path ("/{id}")
public Response readSingle(@PathParam(id) id ){ .... }
}
Now I'd like to add a search method.. something like:
@GET
@Path ("/search")
public Response searchDefects( ){ .... }
So theoretically the first method (@Path("/id") ) can also match the pattern
"defects/search" (as it's parameterized without constraints)
I would like to know what is the expected behavior, will the specific path
always be matched first?
I know it's a JSR issue, and not necessarily related to wink, but I couldn't
find references to this issue on the web.
I tried it using wink and it works according to my expectations, but I'd like
to know if I that is the official behavior
Thanks,
Lior