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 theContent-Encoding: gzip
header to endpoints annotated withGZIP
.The compression is handled by
GZipEncoder
.
-
-
Field Summary
-
Fields inherited from class ubic.gemma.rest.providers.AbstractGzipHeaderDecorator
log
-
-
Constructor Summary
Constructors Constructor Description GzipHeaderDecorator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected 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
-
-
-
-
Method Detail
-
isApplicable
protected boolean isApplicable(javax.ws.rs.ext.WriterInterceptorContext context, GZIP a)
Description copied from class:AbstractGzipHeaderDecorator
Check if the givenGZIP
annotation applies to the given context.- Overrides:
isApplicable
in classAbstractGzipHeaderDecorator
-
-