Package 

Class CompressionStrategy


  • 
    public final class CompressionStrategy
    
                        

    This class is a settings container for Javalin's content compression.

    It is used by the JavalinResponseWrapper to determine the encoding and parameters that should be used when compressing a response.

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private final Brotli brotli
      private final Gzip gzip
    • Method Summary

      Modifier and Type Method Description
      final Brotli getBrotli()
      final Gzip getGzip()
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • CompressionStrategy

        CompressionStrategy(Brotli brotli, Gzip gzip)
        Parameters:
        brotli - instance of Brotli handler, default = null
        gzip - instance of Gzip handler, default = null