Salut,
Paul Sandoz wrote:
Actually my first version was using POST, but I tough it was clearer
with GET. Seems not :-). Felipe (cc-ed) also commented:
"> Just a tip my friend: if you call an application RESTful and use GET
to create resources, the REST community will blame you :) eheh Don't ask
me, I am another Java developer thinking in terms of objects and method
calls, but people outside the Java universe are not so friendly when we
abuse their rules :) I learned this in the hard way, so I hope my hint
can avoid some flames to you ... (ops, I just started one :)"
I admit I wasn't aware of that...
>
> Also the @Produces("text/txt;charset=ISO-8859-1") looks incorrect, do
> you mean text/plain?
Ya typo....
>
> I am sort of wondering if we should enforce that @Broadcast should only
> work with @POST. But perhaps that is going too far.
I think so too. Usually you will use a GET to suspend a connection, and
you might want to broadcast some events.
>
> Also wondering the following: imagine if on the GET to
>
http://localhost:8080/atmosphere-pubsub it returned some XML or JSON
> with link:
>
> <link
>
> template="
http://localhost:8080/atmosphere-pubsub/myAtmosphereTopic/{topic}"
>
> rel="suspend, broadcast">
>
> The "rel" attribute value says if you do a GET you suspend and if you do
> a POST you broadcast.
>
> That type of thing might actual be possible to automate. In addition it
> might be possible to embed such data in the WADL returned by OPTIONS.
That sound interesting....I need to deep dive a little more into WADL
before I can be sure it will work :-)
A+
-- Jeanfrancois
>
> Paul.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
[hidden email]
> For additional commands, e-mail:
[hidden email]
>
---------------------------------------------------------------------
To unsubscribe, e-mail:
[hidden email]
For additional commands, e-mail:
[hidden email]