Hi,
I'm having difficulties with a resource that handles the whole url space
under a given url. For example everything matching /foo/bar/** should be
delivered to that resource, no matter which subpath. The resource handles
the rest. For now I have to do:
@POST @Consumes("application/xml") @Path("{sub1}")
public Response postSub(String content) {
return post(content);
}
@POST @Consumes("application/xml") @Path("{sub1}/{sub2}")
public Response postSubSub(String content) {
return post(content);
}
......
Not really convenient and will break as soon as more subpaths are used than
what I handle. Any other solution?
Thanks,
Matthieu