Class GZIPDecodingInterceptor
java.lang.Object
org.jboss.resteasy.plugins.interceptors.GZIPDecodingInterceptor
- All Implemented Interfaces:
ReaderInterceptor
@Provider
@Priority(4000)
public class GZIPDecodingInterceptor
extends Object
implements ReaderInterceptor
- Version:
- $Revision: 1 $
- Author:
- Bill Burke
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
GZIPDecodingInterceptor
public GZIPDecodingInterceptor(int maxSize) -
GZIPDecodingInterceptor
public GZIPDecodingInterceptor()
-
-
Method Details
-
aroundReadFrom
public Object aroundReadFrom(ReaderInterceptorContext context) throws IOException, WebApplicationException Description copied from interface:ReaderInterceptorInterceptor method wrapping calls toMessageBodyReader.readFrom(java.lang.Class<T>, java.lang.reflect.Type, java.lang.annotation.Annotation[], jakarta.ws.rs.core.MediaType, jakarta.ws.rs.core.MultivaluedMap<java.lang.String, java.lang.String>, java.io.InputStream)method. The parameters of the wrapped method called are available fromcontext. Implementations of this method SHOULD explicitly callReaderInterceptorContext.proceed()to invoke the next interceptor in the chain, and ultimately the wrappedMessageBodyReader.readFrom(java.lang.Class<T>, java.lang.reflect.Type, java.lang.annotation.Annotation[], jakarta.ws.rs.core.MediaType, jakarta.ws.rs.core.MultivaluedMap<java.lang.String, java.lang.String>, java.io.InputStream)method.- Specified by:
aroundReadFromin interfaceReaderInterceptor- Parameters:
context- invocation context.- Returns:
- result of next interceptor invoked or the wrapped method if last interceptor in chain.
- Throws:
IOException- if an IO error arises or is thrown by the wrappedMessageBodyReader.readFrommethod.WebApplicationException- thrown by the wrappedMessageBodyReader.readFrommethod.
-