Class GzipHttpOutputInterceptor

java.lang.Object
org.eclipse.jetty.server.handler.gzip.GzipHttpOutputInterceptor
All Implemented Interfaces:
HttpOutput.Interceptor

public class GzipHttpOutputInterceptor extends Object implements HttpOutput.Interceptor
  • Field Details

    • LOG

      public static org.slf4j.Logger LOG
    • VARY_ACCEPT_ENCODING

      public static final org.eclipse.jetty.http.HttpField VARY_ACCEPT_ENCODING
  • Constructor Details

  • Method Details

    • getNextInterceptor

      public HttpOutput.Interceptor getNextInterceptor()
      Specified by:
      getNextInterceptor in interface HttpOutput.Interceptor
      Returns:
      The next Interceptor in the chain or null if this is the last Interceptor in the chain.
    • write

      public void write(ByteBuffer content, boolean complete, org.eclipse.jetty.util.Callback callback)
      Description copied from interface: HttpOutput.Interceptor
      Write content. The response is committed by the first call to write and is closed by a call with last == true. Empty content buffers may be passed to force a commit or close.
      Specified by:
      write in interface HttpOutput.Interceptor
      Parameters:
      content - The content to be written or an empty buffer.
      complete - True if this is the last call to write
      callback - The callback to use to indicate Callback.succeeded() or Callback.failed(Throwable).
    • commit

      protected void commit(ByteBuffer content, boolean complete, org.eclipse.jetty.util.Callback callback)
    • noCompression

      public void noCompression()
    • mightCompress

      public boolean mightCompress()