Class ServerContentEncodingAnnotationFilter
- java.lang.Object
-
- org.jboss.resteasy.plugins.interceptors.ServerContentEncodingAnnotationFilter
-
- All Implemented Interfaces:
javax.ws.rs.ext.WriterInterceptor,AsyncWriterInterceptor
@ConstrainedTo(SERVER) @Priority(3000) public class ServerContentEncodingAnnotationFilter extends Object implements AsyncWriterInterceptor
- Version:
- $Revision: 1 $
- Author:
- Bill Burke
-
-
Field Summary
Fields Modifier and Type Field Description protected HttpRequestrequest
-
Constructor Summary
Constructors Constructor Description ServerContentEncodingAnnotationFilter(Set<String> encodings)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaroundWriteTo(javax.ws.rs.ext.WriterInterceptorContext context)CompletionStage<Void>asyncAroundWriteTo(AsyncWriterInterceptorContext context)Interceptor method wrapping calls toAsyncMessageBodyWriter.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.
-
-
-
Field Detail
-
request
@Context protected HttpRequest request
-
-
Method Detail
-
aroundWriteTo
public void aroundWriteTo(javax.ws.rs.ext.WriterInterceptorContext context) throws IOException, javax.ws.rs.WebApplicationException- Specified by:
aroundWriteToin interfacejavax.ws.rs.ext.WriterInterceptor- Throws:
IOExceptionjavax.ws.rs.WebApplicationException
-
asyncAroundWriteTo
public CompletionStage<Void> asyncAroundWriteTo(AsyncWriterInterceptorContext context)
Description copied from interface:AsyncWriterInterceptorInterceptor method wrapping calls toAsyncMessageBodyWriter.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 fromcontext. Implementations of this method SHOULD explicitly callAsyncWriterInterceptorContext.asyncProceed()to invoke the next interceptor in the chain, and ultimately the wrappedAsyncMessageBodyWriter.asyncWriteTomethod.- Specified by:
asyncAroundWriteToin interfaceAsyncWriterInterceptor- Parameters:
context- invocation context.- Returns:
- a
CompletionStageindicating completion
-
-