From: Gili <cowwoc_at_bbs.darktech.org>
Date: Thu, 17 Mar 2011 06:27:33 -0700 (PDT)
Martin Matula-3 wrote:
>
> You can use path parameter instead of a particular hostname, like this:
> UriTemplate ut = new
> UriTemplate("http://{host}/context/jersey/books/{id}/page/{pageNum}");
>
> You can even replace the whole context and care only about the
> "jersey-specific" part of the URI like this:
> UriTemplate ut = new UriTemplate("{context:
> *.}/books/{id}/page/{pageNum}");
> Martin
Looks good, except I think you meant "context: .*" as opposed to "context:
*."