Class GzipHttpOutputInterceptor

    • Field Detail

      • LOG

        public static org.eclipse.jetty.util.log.Logger LOG
      • VARY_ACCEPT_ENCODING_USER_AGENT

        public static final HttpField VARY_ACCEPT_ENCODING_USER_AGENT
      • VARY_ACCEPT_ENCODING

        public static final HttpField VARY_ACCEPT_ENCODING
    • Method Detail

      • write

        public void write​(java.nio.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​(java.nio.ByteBuffer content,
                              boolean complete,
                              org.eclipse.jetty.util.Callback callback)
      • noCompression

        public void noCompression()
      • noCompressionIfPossible

        public void noCompressionIfPossible()
      • mightCompress

        public boolean mightCompress()