Class GZIPEncodingInterceptor
- java.lang.Object
-
- org.jboss.resteasy.plugins.interceptors.GZIPEncodingInterceptor
-
- All Implemented Interfaces:
WriterInterceptor,AsyncWriterInterceptor
@Provider @Priority(4000) public class GZIPEncodingInterceptor extends Object implements AsyncWriterInterceptor
- Version:
- $Revision: 1 $
- Author:
- Bill Burke
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classGZIPEncodingInterceptor.CommittedGZIPOutputStreamstatic classGZIPEncodingInterceptor.EndableGZIPOutputStream
-
Constructor Summary
Constructors Constructor Description GZIPEncodingInterceptor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaroundWriteTo(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[], jakarta.ws.rs.core.MediaType, jakarta.ws.rs.core.MultivaluedMap<java.lang.String, java.lang.Object>, org.jboss.resteasy.spi.AsyncOutputStream)method.
-
-
-
Method Detail
-
aroundWriteTo
public void aroundWriteTo(WriterInterceptorContext context) throws IOException, WebApplicationException
Description copied from interface:WriterInterceptorInterceptor method wrapping calls toMessageBodyWriter.writeTo(T, java.lang.Class<?>, java.lang.reflect.Type, java.lang.annotation.Annotation[], jakarta.ws.rs.core.MediaType, jakarta.ws.rs.core.MultivaluedMap<java.lang.String, java.lang.Object>, java.io.OutputStream)method. The parameters of the wrapped method called are available fromcontext. Implementations of this method SHOULD explicitly callWriterInterceptorContext.proceed()to invoke the next interceptor in the chain, and ultimately the wrappedMessageBodyWriter.writeTomethod.- Specified by:
aroundWriteToin interfaceWriterInterceptor- Parameters:
context- invocation context.- Throws:
IOException- if an IO error arises or is thrown by the wrappedMessageBodyWriter.writeTomethod.WebApplicationException- thrown by the wrappedMessageBodyWriter.writeTomethod.
-
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[], jakarta.ws.rs.core.MediaType, jakarta.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
-
-