[jax-rs-spec users] Re: SSE Draft
Done:
https://github.com/mpotociar/api/commit/46d81cf3c5826f62e5824d5330fa4d59ffa0d98f
Marek
> On 15 Oct 2015, at 14:50, Marek Potociar <marek.potociar_at_oracle.com> wrote:
>
> 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
>>
>