Also used to represent the range returned by the server (including the full content length, if known).
| Modifier and Type | Field and Description |
|---|---|
| private Long | contentLength
The content length as returned by the server, or null if unknown. |
| private static final String | |
| private final Long | endByte
The end byte, if given. |
| private static final String | |
| private static final Logger | |
| private static final String | |
| private final Long | startByte
The start byte, if given. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public Long | |
| public Long | |
| public Long | |
| public static Range | |
| public String |
| contentLength | back to summary |
|---|---|
| private Long contentLength The content length as returned by the server, or null if unknown. | |
| END_ONLY_HEADER_VALUE_FORMAT | back to summary |
|---|---|
| private static final String END_ONLY_HEADER_VALUE_FORMAT | |
| endByte | back to summary |
|---|---|
| private final Long endByte The end byte, if given. | |
| HEADER_VALUE_FORMAT | back to summary |
|---|---|
| private static final String HEADER_VALUE_FORMAT | |
| LOG | back to summary |
|---|---|
| private static final Logger LOG | |
| START_ONLY_HEADER_VALUE_FORMAT | back to summary |
|---|---|
| private static final String START_ONLY_HEADER_VALUE_FORMAT | |
| startByte | back to summary |
|---|---|
| private final Long startByte The start byte, if given. | |
| Range | back to summary |
|---|---|
public Range(final Long startByte, final Long endByte)
| |
| getContentLength | back to summary |
|---|---|
| public Long getContentLength() The content length as returned by the server, or null if unknown. | |
| getEndByte | back to summary |
|---|---|
| public Long getEndByte() The end byte, if given. | |
| getStartByte | back to summary |
|---|---|
| public Long getStartByte() The start byte, if given. | |
| parse | back to summary |
|---|---|
| public static Range parse(String value) Parse the "content-range" header per https://tools.ietf.org/html/rfc7233#section-4.2. Note, this is only for successful responses (206). It does not handle 416 (range not satisfiable). | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non- | |