users@jersey.java.net

Re: [Jersey] What HATEOAS actually means

From: Marc Hadley <Marc.Hadley_at_Sun.COM>
Date: Mon, 15 Feb 2010 13:24:19 -0500

On Feb 15, 2010, at 11:43 AM, Jan Algermissen wrote:
>
>> Link headers provide a useful alternative to that of media types for certain cases of hypermedia support.
>
> No, I entirely do not think so because the focus on document oriented messaging is lost and I consider that essential.
>
> I'd only use link headers to provide hypermedia that is not very domain specific but rather general, for example
>
> - service documents
> - nex,previous,up,down
> - versions
>
> Occasionally this could be loosened but I'd not recommend to stuff the domain semantics in a bunch of headers.
>
On your blog[1] yesterday you wrote:

"From a hypermedia constraint point of view it is irrelevant whether the hypermedia controls (that is links, link templates or forms) are placed inside the body or inside the HTTP headers. Placing the controls into the HTTP header can, for example, be a viable solution when you want to (or have to) use existing document formats for the body that do not provide the ability to place the controls in the body."

Second thoughts perhaps ?

Marc.

[1] http://www.nordsc.com/blog/?p=376