users@jersey.java.net

[Jersey] Re: Decoding URI into path parameters

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:
*."

Gili

--
View this message in context: http://jersey.576304.n2.nabble.com/Decoding-URI-into-path-parameters-tp6167750p6180871.html
Sent from the Jersey mailing list archive at Nabble.com.