Class AcceptEncoding

All Implemented Interfaces:
HttpHeader

Represents an HTTP Accept-Encoding header.

Acceptable encodings.

Since:
9.2.1
  • Field Details

  • Constructor Details

    • AcceptEncoding

      public AcceptEncoding(String value)
      Constructor with an eager value.
      Parameters:
      value - The header value. May be null.
    • AcceptEncoding

      Constructor with an already-parsed value.
      Parameters:
      value - The parsed header value. May be null.
  • Method Details

    • of

      public static AcceptEncoding of(String value)
      Static factory method for a header with an eager value.
      Parameters:
      value - The header value. May be null.
      Returns:
      A new instance. Never null.
    • of

      public static AcceptEncoding of(StringRanges value)
      Static factory method for a header with an already-parsed value.
      Parameters:
      value - The parsed header value. May be null.
      Returns:
      A new instance. Never null.
    • ofLazyWire

      public static AcceptEncoding ofLazyWire(Supplier<String> supplier)
      Static factory method for a header with a lazily-supplied, unparsed wire value.
      Parameters:
      supplier - Supplier for the raw header value string. Must not be null.
      Returns:
      A new instance. Never null.
    • ofLazyParsed

      public static AcceptEncoding ofLazyParsed(Supplier<StringRanges> supplier)
      Static factory method for a header with a lazily-supplied, already-parsed value.
      Parameters:
      supplier - Supplier for the parsed header value. Must not be null.
      Returns:
      A new instance. Never null.