Enum Class StaticFileHandler.Compression

java.lang.Object
java.lang.Enum<StaticFileHandler.Compression>
io.fluxzero.sdk.web.StaticFileHandler.Compression
All Implemented Interfaces:
Serializable, Comparable<StaticFileHandler.Compression>, Constable
Enclosing class:
StaticFileHandler

protected static enum StaticFileHandler.Compression extends Enum<StaticFileHandler.Compression>
  • Enum Constant Details

  • Field Details

    • encoding

      public final String encoding
    • extension

      public final String extension
  • Method Details

    • values

      public static StaticFileHandler.Compression[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static StaticFileHandler.Compression valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • negotiate

      public static StaticFileHandler.Compression negotiate(String acceptEncoding, Path path)
      Selects an available Brotli or gzip sibling file when the encoding header contains its token, preferring Brotli; otherwise selects uncompressed content. This helper does not interpret quality weights.