You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by Radhika Inugala <ra...@gmail.com> on 2013/10/01 18:19:45 UTC

Re: CXF support for HATEOAS

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 <sb...@gmail.com>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
>
>