Package org.apache.juneau.http.header
Class IfRange
java.lang.Object
org.apache.juneau.http.header.HttpHeaderBean
org.apache.juneau.http.header.IfRange
- All Implemented Interfaces:
HttpHeader
Represents an HTTP If-Range header.
If the entity is unchanged, send me the part(s) that I am missing; otherwise, send me the entire new entity.
See Also:
- Since:
- 9.2.1
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionConstructor with a wire string (HTTP-date or entity-tag).IfRange(ZonedDateTime value) Constructor with an HTTP-date.Constructor with a lazy supplier ofEntityTagorZonedDateTime.Constructor with an entity-tag value. -
Method Summary
Modifier and TypeMethodDescriptiongetValue()Returns the header value, ornull if the header has no value.static IfRangeStatic factory with a wire string.static IfRangeof(ZonedDateTime value) Static factory with an HTTP-date.static IfRangeStatic factory with a lazy supplier.static IfRangeStatic factory with an entity-tag.Methods inherited from class org.apache.juneau.http.header.HttpHeaderBean
equals, equalsIgnoreCase, getName, hashCode, of, of, toString
-
Field Details
-
NAME
The header name- See Also:
-
-
Constructor Details
-
IfRange
Constructor with an entity-tag value.- Parameters:
value- The entity tag. May benull .
-
IfRange
Constructor with a wire string (HTTP-date or entity-tag).- Parameters:
value- The header value. May benull .
-
IfRange
Constructor with a lazy supplier ofEntityTagorZonedDateTime.- Parameters:
valueSupplier- Supplier for the value. Must not benull .
-
IfRange
Constructor with an HTTP-date.- Parameters:
value- The date/time. May benull .
-
-
Method Details
-
asEntityTag
- Returns:
- This header as an
EntityTag.
-
asZonedDateTime
- Returns:
- This header as a
ZonedDateTimewhen the value is an HTTP-date.
-
getValue
Description copied from interface:HttpHeaderReturns the header value, ornull if the header has no value.- Specified by:
getValuein interfaceHttpHeader- Overrides:
getValuein classHttpHeaderBean- Returns:
- The header value, possibly
null .
-
of
Static factory with an entity-tag.- Parameters:
value- The tag. May benull , in which casenull is returned.- Returns:
- A new instance, or
null ifvalue isnull .
-
of
Static factory with a wire string.- Parameters:
value- The value. May benull , in which casenull is returned.- Returns:
- A new instance, or
null ifvalue isnull .
-
of
Static factory with a lazy supplier.- Parameters:
valueSupplier- Supplier ofEntityTagorZonedDateTime. Must not benull .- Returns:
- A new instance. Never
null .
-
of
Static factory with an HTTP-date.- Parameters:
value- The date/time. May benull , in which casenull is returned.- Returns:
- A new instance, or
null ifvalue isnull .
-