users@jersey.java.net

Re: [Jersey] Hypermedia Support is useless

From: Jan Algermissen <algermissen1971_at_mac.com>
Date: Mon, 15 Feb 2010 13:33:55 +0100

On Feb 15, 2010, at 1:16 PM, Paul Sandoz wrote:

>
> On Feb 14, 2010, at 8:47 PM, Jan Algermissen wrote:
>
>>
>> On Feb 14, 2010, at 8:24 PM, Kevin Duffey wrote:
>>
>>> URIs to be called
>>
>> [Sorry to be sort of nitpicking here, but I think we should not confuse people with confusing use of terms (no insult intended)]
>>
>> URIs identify resources. You do not 'call' URIs. You invoke HTTP methods.
>>
>> The whole idea/notion of operations or actions is just misleading.
>>
>> HTTP is a protocol for transferring representations of resources through a uniform interface. Thinking in terms of order.review() does really not help others to grasp the concept. It just makes them think they do.
>>
>
> I think we may be getting caught up in the naming of things rather than the particular pattern of hypermedia

What is a 'pattern of hypermedia'? Is this 'media type design pattern'?

I am still not seeing what this is supposed to achieved.


> utilized by the prototype.
>
> Consider the following renaming:
>
> @POST
> @TransitionTo("reviewed") @Path("reviewed")
> public void review(@FormParam("reviewer") String reviewer) {
> // Store the reviewer for auditing purposes
> order.setStatus(REVIEWED);
> }
>
> And a client proxy:
>
> @TransitionTo("reviewed")
> public void transitionToReviewed(@Name("reviewer") String s);
>
> The client proxy understands the link relation "reviewed" and thus knows what HTTP method to use and what representation to send.
>

What is wrong about

412 Precondition Failed

causing the client to reload and 'see' that the status has changed?






> Paul.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_jersey.dev.java.net
> For additional commands, e-mail: users-help_at_jersey.dev.java.net
>

-----------------------------------
 Jan Algermissen, Consultant
 NORD Software Consulting

 Mail: algermissen_at_acm.org
 Blog: http://www.nordsc.com/blog/
 Work: http://www.nordsc.com/
-----------------------------------