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 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:
      aroundWriteTo in interface javax.ws.rs.ext.WriterInterceptor
      Throws:
      IOException
      javax.ws.rs.WebApplicationException
    • isApplicable

      protected boolean isApplicable(javax.ws.rs.ext.WriterInterceptorContext context, GZIP a)
      Check if the given GZIP annotation applies to the given context.