[resteasy/Resteasy] 1832fa: [RESTEASY-1701] Async request filters (#1278)
by GitHub
Branch: refs/heads/master
Home: https://github.com/resteasy/Resteasy
Commit: 1832fa478502e0f50622040bae600a16c58611dc
https://github.com/resteasy/Resteasy/commit/1832fa478502e0f50622040bae600...
Author: Stéphane Épardaud <stef(a)inforealm.org>
Date: 2017-09-27 (Wed, 27 Sep 2017)
Changed paths:
M resteasy-jaxrs/src/main/java/org/jboss/resteasy/core/ResourceMethodInvoker.java
M resteasy-jaxrs/src/main/java/org/jboss/resteasy/core/ServerResponseWriter.java
M resteasy-jaxrs/src/main/java/org/jboss/resteasy/core/SynchronousDispatcher.java
M resteasy-jaxrs/src/main/java/org/jboss/resteasy/core/interception/jaxrs/ContainerResponseContextImpl.java
M resteasy-jaxrs/src/main/java/org/jboss/resteasy/core/interception/jaxrs/PostMatchContainerRequestContext.java
M resteasy-jaxrs/src/main/java/org/jboss/resteasy/core/interception/jaxrs/PreMatchContainerRequestContext.java
M resteasy-jaxrs/src/main/java/org/jboss/resteasy/core/interception/jaxrs/ResponseContainerRequestContext.java
A resteasy-jaxrs/src/main/java/org/jboss/resteasy/core/interception/jaxrs/SuspendableContainerRequestContext.java
A resteasy-jaxrs/src/main/java/org/jboss/resteasy/core/interception/jaxrs/SuspendableContainerResponseContext.java
M resteasy-jaxrs/src/main/java/org/jboss/resteasy/plugins/providers/sse/SseEventSinkInterceptor.java
M resteasy-jaxrs/src/main/java/org/jboss/resteasy/spi/metadata/ResourceMethod.java
M resteasy-legacy/src/main/java/org/jboss/resteasy/core/interception/ContainerResponseContextImpl.java
M resteasy-legacy/src/main/java/org/jboss/resteasy/core/interception/PostMatchContainerRequestContext.java
M resteasy-legacy/src/main/java/org/jboss/resteasy/core/interception/PreMatchContainerRequestContext.java
A testsuite/integration-tests/src/test/java/org/jboss/resteasy/test/asynch/AsyncRequestFilterTest.java
A testsuite/integration-tests/src/test/java/org/jboss/resteasy/test/asynch/resource/AsyncPreMatchRequestFilter1.java
A testsuite/integration-tests/src/test/java/org/jboss/resteasy/test/asynch/resource/AsyncPreMatchRequestFilter2.java
A testsuite/integration-tests/src/test/java/org/jboss/resteasy/test/asynch/resource/AsyncPreMatchRequestFilter3.java
A testsuite/integration-tests/src/test/java/org/jboss/resteasy/test/asynch/resource/AsyncRequestFilter.java
A testsuite/integration-tests/src/test/java/org/jboss/resteasy/test/asynch/resource/AsyncRequestFilter1.java
A testsuite/integration-tests/src/test/java/org/jboss/resteasy/test/asynch/resource/AsyncRequestFilter2.java
A testsuite/integration-tests/src/test/java/org/jboss/resteasy/test/asynch/resource/AsyncRequestFilter3.java
A testsuite/integration-tests/src/test/java/org/jboss/resteasy/test/asynch/resource/AsyncRequestFilterResource.java
A testsuite/integration-tests/src/test/java/org/jboss/resteasy/test/asynch/resource/AsyncResponseFilter.java
A testsuite/integration-tests/src/test/java/org/jboss/resteasy/test/asynch/resource/AsyncResponseFilter1.java
A testsuite/integration-tests/src/test/java/org/jboss/resteasy/test/asynch/resource/AsyncResponseFilter2.java
A testsuite/integration-tests/src/test/java/org/jboss/resteasy/test/asynch/resource/AsyncResponseFilter3.java
M testsuite/unit-tests/src/test/java/org/jboss/resteasy/test/request/ContainerRequestContextTest.java
M testsuite/unit-tests/src/test/java/org/jboss/resteasy/test/resource/AcceptParameterHttpPreprocessorTest.java
Log Message:
-----------
[RESTEASY-1701] Async request filters (#1278)
* Support async request filters via new methods on context
* Test for async request filters
* Really detect when a resource method is async (via \@Suspend or SSE)
* Support pre-match async filters
* Test pre-match async filters
* Support async response filters
* Test async response filters
* Removed logging
* Make sure instantaneous suspend/resume in filters does not make connection async
* Further merge issues
* Extracted new async filter behaviour to new interfaces
* Try to simplify how async filters are handled
7 years, 3 months
[resteasy/Resteasy] 231bb2: [RESTEASY-1712] added check and warning msg for am...
by GitHub
Branch: refs/heads/master
Home: https://github.com/resteasy/Resteasy
Commit: 231bb20b630fcc90b896a4fbfc25833c73f98f22
https://github.com/resteasy/Resteasy/commit/231bb20b630fcc90b896a4fbfc258...
Author: rsearls <rsearls(a)localhost.localdomain>
Date: 2017-09-27 (Wed, 27 Sep 2017)
Changed paths:
M resteasy-jaxrs/src/main/java/org/jboss/resteasy/core/ResourceMethodRegistry.java
M resteasy-jaxrs/src/main/java/org/jboss/resteasy/resteasy_jaxrs/i18n/LogMessages.java
M resteasy-jaxrs/src/main/java/org/jboss/resteasy/spi/Registry.java
M resteasy-jaxrs/src/main/java/org/jboss/resteasy/spi/ResteasyDeployment.java
M server-adapters/resteasy-vertx/src/main/java/org/jboss/resteasy/plugins/server/vertx/VertxRegistry.java
A testsuite/integration-tests/src/test/java/org/jboss/resteasy/test/core/interceptors/resource/TestResource1.java
A testsuite/integration-tests/src/test/java/org/jboss/resteasy/test/core/interceptors/resource/TestResource2.java
A testsuite/integration-tests/src/test/java/org/jboss/resteasy/test/core/interceptors/resource/TestSubResource.java
A testsuite/integration-tests/src/test/java/org/jboss/resteasy/test/warning/SubResourceWarningTest.java
A testsuite/integration-tests/src/test/java/org/jboss/resteasy/test/warning/resource/SubResourceWarningResource.java
A testsuite/integration-tests/src/test/java/org/jboss/resteasy/test/warning/resource/TestResource1.java
A testsuite/integration-tests/src/test/java/org/jboss/resteasy/test/warning/resource/TestResource2.java
A testsuite/integration-tests/src/test/java/org/jboss/resteasy/test/warning/resource/TestSubResource.java
Log Message:
-----------
[RESTEASY-1712] added check and warning msg for ambiguous paths.
7 years, 3 months
[resteasy/Resteasy] 6e24e4: [RESTEASY-1701][RESTEASY-1680] Async stream provid...
by GitHub
Branch: refs/heads/master
Home: https://github.com/resteasy/Resteasy
Commit: 6e24e40f34c58be364eba8ca5ebfc3530badd53b
https://github.com/resteasy/Resteasy/commit/6e24e40f34c58be364eba8ca5ebfc...
Author: Alessio Soldano <soldano.servizi(a)email.it>
Date: 2017-09-26 (Tue, 26 Sep 2017)
Changed paths:
M jboss-modules/build.xml
M jboss-modules/pom.xml
M jboss-modules/src/main/resources/modules/org/jboss/resteasy/resteasy-jaxrs/main/module.xml
A jboss-modules/src/main/resources/modules/org/reactivestreams/main/module.xml
M resteasy-dependencies-bom/pom.xml
M resteasy-jaxrs/pom.xml
A resteasy-jaxrs/src/main/java/org/jboss/resteasy/annotations/Stream.java
M resteasy-jaxrs/src/main/java/org/jboss/resteasy/core/AbstractAsynchronousResponse.java
A resteasy-jaxrs/src/main/java/org/jboss/resteasy/core/AsyncResponseConsumer.java
R resteasy-jaxrs/src/main/java/org/jboss/resteasy/core/CompletionStageResponseConsumer.java
M resteasy-jaxrs/src/main/java/org/jboss/resteasy/core/ResourceMethodInvoker.java
M resteasy-jaxrs/src/main/java/org/jboss/resteasy/core/ServerResponseWriter.java
M resteasy-jaxrs/src/main/java/org/jboss/resteasy/core/SynchronousExecutionContext.java
M resteasy-jaxrs/src/main/java/org/jboss/resteasy/core/ThreadLocalResteasyProviderFactory.java
M resteasy-jaxrs/src/main/java/org/jboss/resteasy/mock/MockHttpResponse.java
A resteasy-jaxrs/src/main/java/org/jboss/resteasy/plugins/providers/ReactiveStreamProvider.java
M resteasy-jaxrs/src/main/java/org/jboss/resteasy/plugins/providers/sse/SseEventInputImpl.java
M resteasy-jaxrs/src/main/java/org/jboss/resteasy/plugins/providers/sse/SseEventOutputImpl.java
M resteasy-jaxrs/src/main/java/org/jboss/resteasy/plugins/providers/sse/SseEventProvider.java
M resteasy-jaxrs/src/main/java/org/jboss/resteasy/plugins/server/servlet/HttpServletResponseWrapper.java
M resteasy-jaxrs/src/main/java/org/jboss/resteasy/plugins/server/servlet/Servlet3AsyncHttpRequest.java
M resteasy-jaxrs/src/main/java/org/jboss/resteasy/resteasy_jaxrs/i18n/Messages.java
A resteasy-jaxrs/src/main/java/org/jboss/resteasy/spi/AsyncStreamProvider.java
M resteasy-jaxrs/src/main/java/org/jboss/resteasy/spi/HttpResponse.java
M resteasy-jaxrs/src/main/java/org/jboss/resteasy/spi/ResteasyAsynchronousResponse.java
M resteasy-jaxrs/src/main/java/org/jboss/resteasy/spi/ResteasyProviderFactory.java
M resteasy-jaxrs/src/main/resources/META-INF/services/javax.ws.rs.ext.Providers
M server-adapters/resteasy-jdk-http/src/main/java/org/jboss/resteasy/plugins/server/sun/http/HttpServerResponse.java
M server-adapters/resteasy-netty/src/main/java/org/jboss/resteasy/plugins/server/netty/NettyHttpResponse.java
M server-adapters/resteasy-netty4/src/main/java/org/jboss/resteasy/plugins/server/netty/NettyHttpRequest.java
M server-adapters/resteasy-netty4/src/main/java/org/jboss/resteasy/plugins/server/netty/NettyHttpResponse.java
M server-adapters/resteasy-vertx/src/main/java/org/jboss/resteasy/plugins/server/vertx/VertxHttpRequest.java
M server-adapters/resteasy-vertx/src/main/java/org/jboss/resteasy/plugins/server/vertx/VertxHttpResponse.java
M testsuite/integration-tests/pom.xml
A testsuite/integration-tests/src/test/java/org/jboss/resteasy/test/providers/sse/EscapingSseResource.java
M testsuite/integration-tests/src/test/java/org/jboss/resteasy/test/providers/sse/SseApplication.java
M testsuite/integration-tests/src/test/java/org/jboss/resteasy/test/providers/sse/SseResource.java
M testsuite/integration-tests/src/test/java/org/jboss/resteasy/test/providers/sse/SseTest.java
A testsuite/integration-tests/src/test/java/org/jboss/resteasy/test/response/AnotherPublisherResponseTest.java
M testsuite/integration-tests/src/test/java/org/jboss/resteasy/test/response/CompletionStageResponseTest.java
A testsuite/integration-tests/src/test/java/org/jboss/resteasy/test/response/PublisherResponseTest.java
A testsuite/integration-tests/src/test/java/org/jboss/resteasy/test/response/SingleProvider.java
A testsuite/integration-tests/src/test/java/org/jboss/resteasy/test/response/resource/AsyncResponseCallback.java
A testsuite/integration-tests/src/test/java/org/jboss/resteasy/test/response/resource/AsyncResponseException.java
A testsuite/integration-tests/src/test/java/org/jboss/resteasy/test/response/resource/AsyncResponseExceptionMapper.java
M testsuite/integration-tests/src/test/java/org/jboss/resteasy/test/response/resource/CompletionStageResponseResource.java
A testsuite/integration-tests/src/test/java/org/jboss/resteasy/test/response/resource/PublisherResponseResource.java
Log Message:
-----------
[RESTEASY-1701][RESTEASY-1680] Async stream provider / SSE extensions (#1288)
* Added dependency to reactive streams
* Added support for AsyncStreamProvider
* ServerResponseWriter: new option to write response without headers, extracted method for reuse
* Unified CompletionStage/AsyncStream consumers, support both, inclusing Sse, stream, collect modes
* Sse reader: do not add extra LF at the end
* Added tests for streams
* Test that Sse output is what we receive (LF fix)
* Write SSE by line chunks as per spec
* Test SSE line chunks
* Test rx2 Single provider
* Remove servlet dependency for async
* Make sure we only send SSE if the client accepts it
* Remove servlet-isms from SSE
* Make sure async callbacks are called for CompletionStage/Publisher
* Removed unused test class
* Fixed merge issue with SseEventProvider
* Streaming SSE: make sure we don't request the next one before we've sent the previous one
* Delay onComplete until we're done sending messages
* Adding test for the onComplete issue
* Improving SSE tests
* Return correct future in sink.send
* Fixing minor import issues
7 years, 3 months