Class RangeRequest
java.lang.Object
com.atlassian.confluence.web.rangerequest.RangeRequest
- All Implemented Interfaces:
- Comparable<RangeRequest>
Represents a valid HTTP byte range request
 http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.35.1
- 
Field SummaryFields
- 
Constructor SummaryConstructorsConstructorDescriptionRangeRequest(long firstByte, long contentLength) RangeRequest(long firstByte, long lastByte, long contentLength) 
- 
Method SummaryModifier and TypeMethodDescriptionintcompareTo(RangeRequest that) longlonggetEnd()longlongstatic RangeRequestParse a range header value into a RangeRequest
- 
Field Details- 
RANGE_PATTERN
 
- 
- 
Constructor Details- 
RangeRequestpublic RangeRequest(long firstByte, long contentLength) 
- 
RangeRequestpublic RangeRequest(long firstByte, long lastByte, long contentLength) 
 
- 
- 
Method Details- 
getOffsetpublic long getOffset()
- 
getEndpublic long getEnd()
- 
getRangeLengthpublic long getRangeLength()
- 
getContentLengthpublic long getContentLength()
- 
parsepublic static RangeRequest parse(String headerValue, long contentLength) throws RangeNotSatisfiableException Parse a range header value into a RangeRequest- Parameters:
- headerValue- the string value of the header
- Returns:
- a RangeRequest representing the contents of the header value
- Throws:
- UnsupportedOperationException- if the header value cannot be parsed
- RangeNotSatisfiableException- if the header value cannot be parsed
 
- 
compareTo- Specified by:
- compareToin interface- Comparable<RangeRequest>
 
 
-