[resteasy-commits] [resteasy/Resteasy] 4410a2: [RESTEASY-1776] Sse feature should only be enabled...

GitHub noreply at github.com
Tue Jan 9 18:02:13 EST 2018


  Branch: refs/heads/master
  Home:   https://github.com/resteasy/Resteasy
  Commit: 4410a2642b122443354ded0fac8c21c9cd04882d
      https://github.com/resteasy/Resteasy/commit/4410a2642b122443354ded0fac8c21c9cd04882d
  Author: NicoNes <nicolas.nesmon at 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 at 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 at gmail.com>

* Add missing test case

Signed-off-by: NicoNes <nicolas.nesmon at gmail.com>

* Enrich isSseResourceMethod(ResourceMethod) to take resteasy specific into account

Signed-off-by: NicoNes <nicolas.nesmon at gmail.com>




More information about the resteasy-commits mailing list