Class GzipEncoderConfig

java.lang.Object
org.eclipse.jetty.compression.gzip.GzipEncoderConfig
All Implemented Interfaces:
org.eclipse.jetty.compression.EncoderConfig

public class GzipEncoderConfig extends Object implements org.eclipse.jetty.compression.EncoderConfig
  • Constructor Details

    • GzipEncoderConfig

      public GzipEncoderConfig()
  • Method Details

    • getBufferSize

      public int getBufferSize()
      Specified by:
      getBufferSize in interface org.eclipse.jetty.compression.EncoderConfig
    • setBufferSize

      public void setBufferSize(int size)
      Specified by:
      setBufferSize in interface org.eclipse.jetty.compression.EncoderConfig
    • getCompressionLevel

      public int getCompressionLevel()
      Specified by:
      getCompressionLevel in interface org.eclipse.jetty.compression.EncoderConfig
    • setCompressionLevel

      public void setCompressionLevel(int level)
      Specified by:
      setCompressionLevel in interface org.eclipse.jetty.compression.EncoderConfig
    • getStrategy

      public int getStrategy()
      Specified by:
      getStrategy in interface org.eclipse.jetty.compression.EncoderConfig
    • setStrategy

      public void setStrategy(int strategy)
      Specified by:
      setStrategy in interface org.eclipse.jetty.compression.EncoderConfig
    • isSyncFlush

      public boolean isSyncFlush()
      Is the Deflater running Deflater.SYNC_FLUSH or not.
      Returns:
      True if Deflater.SYNC_FLUSH is used, else Deflater.NO_FLUSH
      See Also:
    • setSyncFlush

      public void setSyncFlush(boolean syncFlush)
      Set the Deflater flush mode to use. Deflater.SYNC_FLUSH should be used if the application wishes to stream the data, but this may hurt compression performance.
      Parameters:
      syncFlush - True if Deflater.SYNC_FLUSH is used, else Deflater.NO_FLUSH
      See Also: