I want to create a REST service where the parameter is a path with a non-fixed number of terms. For example:
@Path("obj") public class ObjectResource { @GET @Path(???) public Response getObj(@Param(???) String path) { .... } } If the request URL is like:
http://myhost.xyz/app/obj/var/share/www The method getObj would get as its path parameter the String
var/share/www Alternatively it would be OK to get an array (or Collection) with "var" "share" "www" in separate ordered elements. (I would just do a String.split() on the single string anyway.)
Can this be done?