@ConstrainedTo(value=SERVER) @Priority(value=3000) public class ServerContentEncodingAnnotationFilter extends Object implements AsyncWriterInterceptor
Modifier and Type | Field and Description |
---|---|
protected HttpRequest |
request |
Constructor and Description |
---|
ServerContentEncodingAnnotationFilter(Set<String> encodings) |
Modifier and Type | Method and Description |
---|---|
void |
aroundWriteTo(javax.ws.rs.ext.WriterInterceptorContext context) |
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. |
@Context protected HttpRequest request
public void aroundWriteTo(javax.ws.rs.ext.WriterInterceptorContext context) throws IOException, javax.ws.rs.WebApplicationException
aroundWriteTo
in interface javax.ws.rs.ext.WriterInterceptor
IOException
javax.ws.rs.WebApplicationException
public CompletionStage<Void> asyncAroundWriteTo(AsyncWriterInterceptorContext context)
AsyncWriterInterceptor
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.asyncAroundWriteTo
in interface AsyncWriterInterceptor
context
- invocation context.CompletionStage
indicating completionCopyright © 2021 JBoss by Red Hat. All rights reserved.