users@jersey.java.net

[Jersey] _at_Ref and _at_QueryParam

From: <ds_at_terratap.com>
Date: Fri, 18 Jan 2013 00:22:59 +0000 (GMT)

Hi,

I am using Jersey 1.11.1 in GlassFish and I am trying to return a URI
that has an @QueryParam.

For example I want the returned URI to look something like:

<bar>http://car.com/star?param=XYZ</bar>

I have the basic @Ref like this:

@Ref(
    resource=Foo.class,
    style = Ref.Style.ABSOLUTE,
    bindings={}
)
@XmlElement
private URI bar;

but for the life of me I cannot figure out if there is a way to add the
query param in there or not. The specific use case is setting the
values for paging.

If it is possible how? If it isn't possible any suggestions on what to
do instead?

Thanks,

..darcy