public class ContentByteRange extends Object
| Constructor and Description |
|---|
ContentByteRange(String range)
Captures the start and end values described in an HTTP Range header
|
| Modifier and Type | Method and Description |
|---|---|
Long |
getRangeEnd()
Gets the ending point of the byte range (the number following the "-"),
or null if there is no number following the dash
|
Long |
getRangeStart()
Gets the starting point of the byte range (the number preceding the "-"),
or null if there is no number preceding the dash
|
String |
getUsage(String range)
Provides text describing how the Range header value is to be used,
and noting that the provided range is invalid.
|
protected void |
parseRange(String range)
Parses the Range HTTP header value.
|
public ContentByteRange(String range)
range - HTTP Range header with format 'bytes=X-Y'public Long getRangeStart()
public Long getRangeEnd()
protected void parseRange(String range)
range - Range header included in HTTP requestIllegalArgumentException - if range value is not validCopyright © 2009–2018 DuraSpace. All rights reserved.