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 TypeMethodDescriptionvoidaroundWriteTo(javax.ws.rs.ext.WriterInterceptorContext context) protected booleanisApplicable(javax.ws.rs.ext.WriterInterceptorContext context, GZIP a) Check if the givenGZIPannotation 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:
aroundWriteToin interfacejavax.ws.rs.ext.WriterInterceptor- Throws:
IOExceptionjavax.ws.rs.WebApplicationException
-
isApplicable
Check if the givenGZIPannotation applies to the given context.
-