Skip to content

Changes

Summary

  1. Support CompletionStage<Response> (commit: 8cf7cab) (details)
  2. Make sure the parent 'responseFuture' CompletableFuture is completed. (commit: 1e6c692) (details)
Commit 8cf7cab8e3c44ab02a758790eb9a7d37f106d8d8 by 15908245+jansupol
Support CompletionStage<Response>

Signed-off-by: jansupol <jan.supol@oracle.com>
(commit: 8cf7cab)
The file was modified core-server/src/main/java/org/glassfish/jersey/server/model/ResourceMethodInvoker.java (diff)
The file was modified tests/e2e-server/src/test/java/org/glassfish/jersey/tests/e2e/server/CompletionStageTest.java (diff)
The file was modified tests/e2e-server/pom.xml (diff)
Commit 1e6c6929be44a8a52ff0c2c14fec42cbf2522e6d by 15908245+jansupol
Make sure the parent 'responseFuture' CompletableFuture is completed.
This ensures that the jettyRequest.abort() operation is actually performed.

Current situation prevent this code to be ever called as only the chained CompletableFuture is completed.
(commit: 1e6c692)
The file was modified connectors/jetty-connector/src/main/java/org/glassfish/jersey/jetty/connector/JettyConnector.java (diff)