users@jersey.java.net

Re: resource relations

From: Marc Hadley <Marc.Hadley_at_Sun.COM>
Date: Mon, 14 Jan 2008 11:58:21 -0500

Take a look at UriBuilder and the associated methods of UriInfo, these
allow you to build URIs to resource classes etc. I can't offer much
help with customizing JAXB marshalling/unmarshalling to the extent you
desire however.

Marc.

On Jan 14, 2008, at 10:42 AM, Tom Deckers (tdeckers) wrote:

> All,
>
> From the examples I’ve seen, href looks like an elegant (standard?)
> way of referencing between resources. However, does the
> implementation include facilities to generate href links based on
> object trees?
> E.g. I rely on JAXB to translate my objects to XML and back. I’d
> like the tree to be translated to the root element with a href to
> child resources, rather than translate the entire tree. Any
> suggestions on how best to deal with this?
>
> Thanks & Regards,
> Tom Deckers.

---
Marc Hadley <marc.hadley at sun.com>
CTO Office, Sun Microsystems.