public interface AsyncWriterInterceptor
extends javax.ws.rs.ext.WriterInterceptor
Modifier and Type | Method and Description |
---|---|
CompletionStage<Void> |
asyncAroundWriteTo(AsyncWriterInterceptorContext context)
Interceptor method wrapping calls to
AsyncMessageBodyWriter.asyncWriteTo(T, java.lang.Class<?>, java.lang.reflect.Type, java.lang.annotation.Annotation[], javax.ws.rs.core.MediaType, javax.ws.rs.core.MultivaluedMap<java.lang.String, java.lang.Object>, org.jboss.resteasy.spi.AsyncOutputStream) method. |
CompletionStage<Void> asyncAroundWriteTo(AsyncWriterInterceptorContext context)
AsyncMessageBodyWriter.asyncWriteTo(T, java.lang.Class<?>, java.lang.reflect.Type, java.lang.annotation.Annotation[], javax.ws.rs.core.MediaType, javax.ws.rs.core.MultivaluedMap<java.lang.String, java.lang.Object>, org.jboss.resteasy.spi.AsyncOutputStream)
method.
The parameters of the wrapped method called are available from context
.
Implementations of this method SHOULD explicitly call
AsyncWriterInterceptorContext.asyncProceed()
to invoke the next interceptor in the chain,
and ultimately the wrapped AsyncMessageBodyWriter.asyncWriteTo
method.context
- invocation context.CompletionStage
indicating completionIOException
- if an IO error arises or is thrown by the wrapped
AsyncMessageBodyWriter.asyncWriteTo
method, in the returned CompletionStage
.javax.ws.rs.WebApplicationException
- thrown by the wrapped AsyncMessageBodyWriter.asyncWriteTo
method, in the returned CompletionStage
.Copyright © 2020 JBoss by Red Hat. All rights reserved.