I've seen plenty examples of performing an HTTP GET via Wink client,
but no example using a path parameter. I cannot get this to work. The
documentation only shows the server-side code, not client:
http://wink.apache.org/1.0/html/JAX-RS%20Parameters.html
The only thing I could come up with is recreating the Resource, for
each unique parameter value, e.g.
Resource resource =
client.resource("http://localhost:9080/ws/api/getuserbyid/0123456789abcdef");
ClientResponse response = resource
.contentType("application/json")
.accept("application/json")
.get();
og.info(response.getEntity(String.class));
Isn't there some way to parameterize the last path component?
Thanks,
Chris Wolf