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 boolean
isApplicable
(javax.ws.rs.ext.WriterInterceptorContext context, GZIP a) Check if the givenGZIP
annotation applies to the given context.Methods inherited from class ubic.gemma.rest.providers.AbstractGzipHeaderDecorator
aroundWriteTo
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface javax.ws.rs.ext.WriterInterceptor
aroundWriteTo
-
Constructor Details
-
GzipHeaderDecorator
public GzipHeaderDecorator()
-
-
Method Details
-
isApplicable
Description copied from class:AbstractGzipHeaderDecorator
Check if the givenGZIP
annotation applies to the given context.- Overrides:
isApplicable
in classAbstractGzipHeaderDecorator
-