Package org.apache.juneau.http.header
Class AcceptEncoding
java.lang.Object
org.apache.juneau.http.header.HttpHeaderBean
org.apache.juneau.http.header.HttpStringRangesHeader
org.apache.juneau.http.header.AcceptEncoding
- All Implemented Interfaces:
HttpHeader
Represents an HTTP Accept-Encoding header.
Acceptable encodings.
- Since:
- 9.2.1
-
Field Summary
FieldsFields inherited from class org.apache.juneau.http.header.HttpStringRangesHeader
LAZY_STRING_RANGES, LAZY_WIRE_STRING -
Constructor Summary
ConstructorsConstructorDescriptionAcceptEncoding(String value) Constructor with an eager value.AcceptEncoding(StringRanges value) Constructor with an already-parsed value. -
Method Summary
Modifier and TypeMethodDescriptionstatic AcceptEncodingStatic factory method for a header with an eager value.static AcceptEncodingof(StringRanges value) Static factory method for a header with an already-parsed value.static AcceptEncodingofLazyParsed(Supplier<StringRanges> supplier) Static factory method for a header with a lazily-supplied, already-parsed value.static AcceptEncodingofLazyWire(Supplier<String> supplier) Static factory method for a header with a lazily-supplied, unparsed wire value.Methods inherited from class org.apache.juneau.http.header.HttpStringRangesHeader
asStringRanges, getRange, match, of, of, orElse, toStringRangesMethods inherited from class org.apache.juneau.http.header.HttpHeaderBean
equals, equalsIgnoreCase, getName, getValue, hashCode, of, toString
-
Field Details
-
NAME
- See Also:
-
-
Constructor Details
-
AcceptEncoding
Constructor with an eager value.- Parameters:
value- The header value. May benull .
-
AcceptEncoding
Constructor with an already-parsed value.- Parameters:
value- The parsed header value. May benull .
-
-
Method Details
-
of
Static factory method for a header with an eager value.- Parameters:
value- The header value. May benull .- Returns:
- A new instance. Never
null .
-
of
Static factory method for a header with an already-parsed value.- Parameters:
value- The parsed header value. May benull .- Returns:
- A new instance. Never
null .
-
ofLazyWire
Static factory method for a header with a lazily-supplied, unparsed wire value.- Parameters:
supplier- Supplier for the raw header value string. Must not benull .- Returns:
- A new instance. Never
null .
-
ofLazyParsed
Static factory method for a header with a lazily-supplied, already-parsed value.- Parameters:
supplier- Supplier for the parsed header value. Must not benull .- Returns:
- A new instance. Never
null .
-