jsr370-experts@jax-rs-spec.java.net

Re: [jax-rs-spec users] SSE Draft

From: Marek Potociar <marek.potociar_at_oracle.com>
Date: Thu, 15 Oct 2015 14:50:11 +0200

Hi Sergey,

The shortcut is already possible. I will update the example.

Cheers,
Marek

> On 15 Oct 2015, at 13:05, Sergey Beryozkin <sberyozkin_at_talend.com> wrote:
>
> Re a code line like this one:
>
> https://github.com/mpotociar/api/blob/master/examples/src/main/java/jaxrs/examples/sse/ServerSentEventsResource.java#L112
>
> output.write(sseContext.newEvent().name("domain-progress").data(String.class, "50%").build());
>
> why not:
>
> output.write(sseContext.newEvent().name("domain-progress").data("50%").build());
>
> and if needed
>
> .data(new GenericEntity).
>
> ?
>
> Thanks, Sergey
>
> On 14/10/15 10:28, Sergey Beryozkin wrote:
>>>
>>> (3) SSE:
>>>
>>> https://github.com/mpotociar/api/tree/master/examples/src/main/java/jaxrs/examples/sse
>>>
>>> Note that like in NIO, there are proposed extensions to both the Client and Server APIs for SSE.
>>>
>>
>> I think it is written in the spirit of JAX-RS - I'll have more comments in due time, but I'm positive after a quick glance
>>
>> Sergey
>