users@jersey.java.net

[Jersey] Re: Decoding URI into path parameters

From: Martin Matula <martin.matula_at_oracle.com>
Date: Thu, 17 Mar 2011 16:39:55 +0100

On 17.3.2011 14:27, Gili wrote:
> 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:
> *."
Yes :)
Martin