Package ubic.gemma.rest.providers
Class GzipHeaderDecorator
- java.lang.Object
-
- ubic.gemma.rest.providers.GzipHeaderDecorator
-
- All Implemented Interfaces:
javax.ws.rs.ext.WriterInterceptor
@Provider @Priority(3000) public class GzipHeaderDecorator extends Object implements javax.ws.rs.ext.WriterInterceptor
Automagically add theContent-Encoding: gzip
header to endpoints annotated withGZIP
.The compression is handled by
GZipEncoder
.
-
-
Constructor Summary
Constructors Constructor Description GzipHeaderDecorator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
aroundWriteTo(javax.ws.rs.ext.WriterInterceptorContext writerInterceptorContext)
-
-
-
Method Detail
-
aroundWriteTo
public void aroundWriteTo(javax.ws.rs.ext.WriterInterceptorContext writerInterceptorContext) throws javax.ws.rs.WebApplicationException, IOException
- Specified by:
aroundWriteTo
in interfacejavax.ws.rs.ext.WriterInterceptor
- Throws:
javax.ws.rs.WebApplicationException
IOException
-
-