Hi, Thanks for the info.I think I can use this, have seen the info on CXF + using these classes to include the urls.I think I can use these to add the resource's links in the response. And that is what I needed.
On Mon, Sep 30, 2013 at 4:05 AM, Sergey Beryozkin <[email protected]>wrote: > Hi > > On 27/09/13 22:09, Radhika Inugala wrote: > >> Hi, >> I want to add HATEOAS to send the links to the resources back in the >> response of the Rest web service. >> The current implementation is using CXF. >> >> When I searched over net, I did not find any implementation of HATEOAS >> when using CXF. >> >> Any help is appreciated. >> >> Typically I'd recommend working with JAX-RS UriInfo and UriBuilder for > building a response with the links. JAX-RS 2.0 introduces Link and JAXB > link adapter, Bill Burke reported there was a minor Link serialization > issue though in 2.0 to be fixed in 2.1, so I guess UriInfo and UriBuilder > are the actual tools to be used. > > You can use Link headers in JAX-RS 2.0. > > I know Jersey and I believe RestEasy did some work for supporting the > declarative HATEOS (by having the data modified), but I'm not too keen to > be honest, adding the links to the data models which have not been designed > to support the extra link attributes or values may not be the best idea, > I'd rather offer HTTP-centric data wrappers if needed... > > What are your requirements ? > > Sergey > >
