Package org.apache.juneau.http.header
Class AcceptRanges
java.lang.Object
org.apache.juneau.http.header.HttpHeaderBean
org.apache.juneau.http.header.HttpStringHeader
org.apache.juneau.http.header.AcceptRanges
- All Implemented Interfaces:
HttpHeader
Represents an HTTP Accept-Ranges header.
What partial content range types this server supports via byte serving.
See Also:
- Since:
- 9.2.1
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionAcceptRanges(String value) Constructor with an eager value.AcceptRanges(Supplier<String> valueSupplier) Constructor with a lazy value supplier. -
Method Summary
Modifier and TypeMethodDescriptionstatic AcceptRangesStatic factory method with an eager value.static AcceptRangesStatic factory method with a lazy value supplier.Methods inherited from class org.apache.juneau.http.header.HttpStringHeader
of, of, ofPairMethods inherited from class org.apache.juneau.http.header.HttpHeaderBean
equals, equalsIgnoreCase, getName, getValue, hashCode, toString
-
Field Details
-
NAME
The header name- See Also:
-
-
Constructor Details
-
AcceptRanges
Constructor with an eager value.- Parameters:
value- The header value. May benull .
-
AcceptRanges
Constructor with a lazy value supplier.- Parameters:
valueSupplier- Supplier for the header value. Must not benull .
-
-
Method Details
-
of
Static factory method with an eager value.- Parameters:
value- The header value. May benull .- Returns:
- A new instance. Never
null .
-
of
Static factory method with a lazy value supplier.- Parameters:
valueSupplier- Supplier for the header value. Must not benull .- Returns:
- A new instance. Never
null .
-