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.
If it is possible how? If it isn't possible any suggestions on what to do instead?