@Header(value="Accept-Ranges") public class AcceptRanges extends BasicStringHeader
What partial content range types this server supports via byte serving.
Accept-Ranges: bytes
Accept-Ranges = "Accept-Ranges" ":" acceptable-ranges acceptable-ranges = 1#range-unit | "none"
Origin servers that accept byte-range requests MAY send...
Accept-Ranges: bytes
...but are not required to do so.
Clients MAY generate byte-range requests without having received this header for the resource involved.
Range units are defined in section 3.12.
Servers that do not accept any kind of range request for a resource MAY send...
Accept-Ranges: none
...to advise the client not to attempt a range request.
Constructor and Description |
---|
AcceptRanges(Object value)
Constructor.
|
AcceptRanges(String value)
Constructor
|
Modifier and Type | Method and Description |
---|---|
static AcceptRanges |
of(Object value)
Convenience creator.
|
static AcceptRanges |
of(Supplier<?> value)
Convenience creator using supplier.
|
assertString, getValue, of, of
assertName, assertValue, canCast, cast, eqIC, equals, getElements, getName, getRawValue, hashCode, isSupplier, of, ofPair, toString, unwrap
public AcceptRanges(Object value)
public AcceptRanges(String value)
value
- The header value.public static AcceptRanges of(Object value)
value
- The header value.
String
AcceptRanges
object.public static AcceptRanges of(Supplier<?> value)
Header value is re-evaluated on each call to BasicStringHeader.getValue()
.
value
- The header value supplier.
String
AcceptRanges
object.Copyright © 2016–2020 The Apache Software Foundation. All rights reserved.