Package ubic.gemma.rest.providers
Class AbstractGzipHeaderDecorator
java.lang.Object
ubic.gemma.rest.providers.AbstractGzipHeaderDecorator
- All Implemented Interfaces:
javax.ws.rs.ext.WriterInterceptor
- Direct Known Subclasses:
GzipHeaderDecorator
,GzipHeaderDecoratorAfterGZipEncoder
public abstract class AbstractGzipHeaderDecorator
extends Object
implements javax.ws.rs.ext.WriterInterceptor
Base class for decorators that handle the
GZIP
annotation.- Author:
- poirigui
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
aroundWriteTo
(javax.ws.rs.ext.WriterInterceptorContext context) protected boolean
isApplicable
(javax.ws.rs.ext.WriterInterceptorContext context, GZIP a) Check if the givenGZIP
annotation applies to the given context.
-
Field Details
-
log
protected final org.apache.commons.logging.Log log
-
-
Constructor Details
-
AbstractGzipHeaderDecorator
public AbstractGzipHeaderDecorator()
-
-
Method Details
-
aroundWriteTo
public void aroundWriteTo(javax.ws.rs.ext.WriterInterceptorContext context) throws IOException, javax.ws.rs.WebApplicationException - Specified by:
aroundWriteTo
in interfacejavax.ws.rs.ext.WriterInterceptor
- Throws:
IOException
javax.ws.rs.WebApplicationException
-
isApplicable
Check if the givenGZIP
annotation applies to the given context.
-