Branch: refs/heads/master
Home:
https://github.com/resteasy/Resteasy
Commit: 4410a2642b122443354ded0fac8c21c9cd04882d
https://github.com/resteasy/Resteasy/commit/4410a2642b122443354ded0fac8c2...
Author: NicoNes <nicolas.nesmon(a)gmail.com>
Date: 2018-01-10 (Wed, 10 Jan 2018)
Changed paths:
M resteasy-jaxrs/src/main/java/org/jboss/resteasy/core/AsyncResponseConsumer.java
M resteasy-jaxrs/src/main/java/org/jboss/resteasy/core/ResourceMethodInvoker.java
M
resteasy-jaxrs/src/main/java/org/jboss/resteasy/plugins/providers/sse/SseEventSinkInterceptor.java
A
testsuite/integration-tests/src/test/java/org/jboss/resteasy/test/providers/sse/SseEnablingTest.java
A
testsuite/integration-tests/src/test/java/org/jboss/resteasy/test/providers/sse/SseEnablingTestResource.java
Log Message:
-----------
[RESTEASY-1776] Sse feature should only be enabled when resource method only produces
"text/event-stream" and is injected with @Context SseEventSink (#1376)
* Add Sse enabling tests
Signed-off-by: NicoNes <nicolas.nesmon(a)gmail.com>
* Add concept of SSE resource method as stated in the spec. To only enable
SSE feature when resource method only produces text\event-stream
Signed-off-by: NicoNes <nicolas.nesmon(a)gmail.com>
* Add missing test case
Signed-off-by: NicoNes <nicolas.nesmon(a)gmail.com>
* Enrich isSseResourceMethod(ResourceMethod) to take resteasy specific into account
Signed-off-by: NicoNes <nicolas.nesmon(a)gmail.com>