users@jersey.java.net

[Jersey] Example of matrix URIs?

From: Gili <cowwoc_at_bbs.darktech.org>
Date: Mon, 10 Nov 2008 12:26:51 -0800 (PST)

Hi,

JAX-RS and Jersey mention matrix URIs in a couple of places in the
documentation but don't seem to provide example code anywhere.

Does anyone have a clear example showing the usage of matrix URIs using
JAX-RS? For example, given:

http://example.com/images/1;2;5/tags

I expect to get back the tags associated with images 1, 2 and 5 (all in one
response). It's not clear how to implement this.

Alternatively, I want to be able to use these kinds of URIs:

http://example.com/images/1;2;5?select=random

which means that "select=random" should be applied on images "1, 2, 5". In
theory this means the server should select a random image from within that
set.

Thanks,
Gili
-- 
View this message in context: http://n2.nabble.com/Example-of-matrix-URIs--tp1482069p1482069.html
Sent from the Jersey mailing list archive at Nabble.com.