Package org.apache.juneau.http.header
Class ContentRange
java.lang.Object
org.apache.juneau.http.header.HttpHeaderBean
org.apache.juneau.http.header.HttpStringHeader
org.apache.juneau.http.header.ContentRange
- All Implemented Interfaces:
HttpHeader
Represents an HTTP Content-Range header.
Where in a full body message this partial message belongs.
See Also:
- Since:
- 9.2.1
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classFluent builder for assembling an HTTPContent-Range header value. -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionContentRange(String value) Constructor with an eager value.ContentRange(Supplier<String> valueSupplier) Constructor with a lazy value supplier. -
Method Summary
Modifier and TypeMethodDescriptionstatic ContentRange.Buildercreate()Creates a newContentRange.Builderdefaulting to thebytes range unit.static ContentRangeStatic factory method with an eager value.static ContentRangeStatic 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
-
ContentRange
Constructor with an eager value.- Parameters:
value- The header value. May benull .
-
ContentRange
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 .
-
create
Creates a newContentRange.Builderdefaulting to thebytes range unit.- Returns:
- A new builder. Never
null .
-