users@jersey.java.net

[Jersey] Inheritance of duplicate _at_MatrixParam

From: Gili <cowwoc_at_bbs.darktech.org>
Date: Sun, 18 Jan 2009 08:24:44 -0800 (PST)

Hi,

Given:

/images;offset={offset};count={count}/random;count={count}

where "images" is one resource and "random" is a sub-resource. It is my
understanding that if a client does not provide the second "count" when I
query for its value I will get back the value of the first "count".
Furthermore, it is my understanding that there is no way for me to detect
whether the second count is really empty or not. I personally think this
behavior is wrong, even if it's "working as designed". Is it possible to
change the specification on this front such that @MatrixParam is *not*
inherited? If I really want the parent @MatrixParam value I would pass it
forward to the sub-resource constructor...

Ideas?

Gili
-- 
View this message in context: http://n2.nabble.com/Inheritance-of-duplicate-%40MatrixParam-tp2177494p2177494.html
Sent from the Jersey mailing list archive at Nabble.com.