How do I define @Path to except variable length parameters as part of my end-point. For example, I would like to be able to make the following requests for the same end-points:
http://whatever.com/MyWS/mywebservices/foo - works http://whatever.com/MyWS/mywebservices/foo/1 - 404 requested resource () is not available http://whatever.com/MyWS/mywebservices/foo/1/2 - 404 requested resource () is not available http://whatever.com/MyWS/mywebservices/foo/1/2/3 - 404 requested resource () is not available http://whatever.com/MyWS/mywebservices/foo?param1=10 - works http://whatever.com/MyWS/mywebservices/foo/1/2?param1=20¶m2=5 - 404 requested resource () is not available etc ---------------------------------- @Path("foo") @GET public String foo(@Context UriInfo ui){ MultivaluedMap<String, String> queryParams = ui.getQueryParameters(); MultivaluedMap<String, String> pathParams = ui.getPathParameters(); return "foo(): " + queryParams.size() + ", " + pathParams.size(); } -- View this message in context: http://cxf.547215.n5.nabble.com/JAX-RS-variable-length-parameters-tp4554272p4554272.html Sent from the cxf-user mailing list archive at Nabble.com.
