| Modifier and Type | Class and Description |
|---|---|
| public static class | |
| public static class |
| Modifier and Type | Method and Description |
|---|---|
| public long | Returns: The range endThe range segment to get range)Gets the end of the specified range segment, or the number of bytes if this is a suffix range segment |
| public int | |
| public ByteRange. | getResponseResult(final long resourceContentLength, String ifRange, Date lastModified, String eTag)
Returns a representation of the range result. |
| public long | Returns: The range startThe range segment to get range)Gets the start of the specified range segment, of -1 if this is a suffix range segment |
| public static ByteRange |
| ranges | back to summary |
|---|---|
| private final List<ByteRange. | |
| ByteRange | back to summary |
|---|---|
| public ByteRange(List<ByteRange. | |
| getEnd | back to summary |
|---|---|
| public long getEnd(int range) Gets the end of the specified range segment, or the number of bytes if this is a suffix range segment
| |
| getRanges | back to summary |
|---|---|
| public int getRanges() | |
| getResponseResult | back to summary |
|---|---|
| public ByteRange. Returns a representation of the range result. If this returns null then a 200 response should be sent instead | |
| getStart | back to summary |
|---|---|
| public long getStart(int range) Gets the start of the specified range segment, of -1 if this is a suffix range segment
| |
| parse | back to summary |
|---|---|
| public static ByteRange parse(String rangeHeader) Attempts to parse a range request. If the range request is invalid it will just return null so that it may be ignored. | |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public long | |
| public long |
| end | back to summary |
|---|---|
| private final long end | |
| start | back to summary |
|---|---|
| private final long start | |
| Range | back to summary |
|---|---|
| public Range(long start, long end) | |
| getEnd | back to summary |
|---|---|
| public long getEnd() | |
| getStart | back to summary |
|---|---|
| public long getStart() | |
| Modifier and Type | Field and Description |
|---|---|
| private final long | |
| private final String | |
| private final long | |
| private final long | |
| private final int |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public long | |
| public String | |
| public long | |
| public long | |
| public int |
| contentLength | back to summary |
|---|---|
| private final long contentLength | |
| contentRange | back to summary |
|---|---|
| private final String contentRange | |
| end | back to summary |
|---|---|
| private final long end | |
| start | back to summary |
|---|---|
| private final long start | |
| statusCode | back to summary |
|---|---|
| private final int statusCode | |
| RangeResponseResult | back to summary |
|---|---|
| public RangeResponseResult(long start, long end, long contentLength, String contentRange, int statusCode) | |
| getContentLength | back to summary |
|---|---|
| public long getContentLength() | |
| getContentRange | back to summary |
|---|---|
| public String getContentRange() | |
| getEnd | back to summary |
|---|---|
| public long getEnd() | |
| getStart | back to summary |
|---|---|
| public long getStart() | |
| getStatusCode | back to summary |
|---|---|
| public int getStatusCode() | |