Package ubic.gemma.rest.providers
Class GzipHeaderDecorator
java.lang.Object
ubic.gemma.rest.providers.AbstractGzipHeaderDecorator
ubic.gemma.rest.providers.GzipHeaderDecorator
- All Implemented Interfaces:
javax.ws.rs.ext.WriterInterceptor
@Provider
@Priority(3000)
public class GzipHeaderDecorator
extends AbstractGzipHeaderDecorator
implements javax.ws.rs.ext.WriterInterceptor
Automagically add the
Content-Encoding: gzip header to endpoints annotated with GZIP.
The compression is handled by GZipEncoder.
-
Field Summary
Fields inherited from class ubic.gemma.rest.providers.AbstractGzipHeaderDecorator
log -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanisApplicable(javax.ws.rs.ext.WriterInterceptorContext context, GZIP a) Check if the givenGZIPannotation applies to the given context.Methods inherited from class ubic.gemma.rest.providers.AbstractGzipHeaderDecorator
aroundWriteToMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface javax.ws.rs.ext.WriterInterceptor
aroundWriteTo
-
Constructor Details
-
GzipHeaderDecorator
public GzipHeaderDecorator()
-
-
Method Details
-
isApplicable
Description copied from class:AbstractGzipHeaderDecoratorCheck if the givenGZIPannotation applies to the given context.- Overrides:
isApplicablein classAbstractGzipHeaderDecorator
-