abstract class HttpRange
Represents an HTTP (byte) range for use with the HTTP "Range"
header.
Author
Arjen Poutsma
Author
Juergen Hoeller
Since
4.2
See Also
<a href="http://tools.ietf.org/html/rfc7233">HTTP/1.1: Range Requests</a>HttpHeaders#setRange(List)HttpHeaders#getRange()
HttpRange()
Represents an HTTP (byte) range for use with the HTTP |
open static fun createByteRange(firstBytePos: Long): HttpRange
Create an open static fun createByteRange(firstBytePos: Long, lastBytePos: Long): HttpRange
Create a |
|
open static fun createSuffixRange(suffixLength: Long): HttpRange
Create an |
|
abstract fun getRangeEnd(length: Long): Long
Return the end of the range (inclusive) given the total length of a representation. |
|
abstract fun getRangeStart(length: Long): Long
Return the start of the range given the total length of a representation. |
|
open static fun parseRanges(ranges: String): MutableList<HttpRange>
Parse the given, comma-separated string into a list of This method can be used to parse an |
|
open fun toResourceRegion(resource: Resource): ResourceRegion
Turn a |
|
open static fun toResourceRegions(ranges: MutableList<HttpRange>, resource: Resource): MutableList<ResourceRegion>
Convert each |
|
open static fun toString(ranges: MutableCollection<HttpRange>): String
Return a string representation of the given list of This method can be used to for an |