Class RangeHeaderResult
java.lang.Object
com.atlassian.bamboo.plugin.servlet.RangeHeaderResult
Represents the result of processing an HTTP Range header
This class encapsulates the starting byte position and the content length
to be served in response to a range request
-
Constructor Summary
ConstructorsConstructorDescriptionRangeHeaderResult
(long start, long contentLength) Constructs a newRangeHeaderResult
with the specified start position and content length -
Method Summary
Modifier and TypeMethodDescriptionlong
Returns the length of the content to be servedlong
getStart()
Returns the starting byte position of the range to be served
-
Constructor Details
-
RangeHeaderResult
public RangeHeaderResult(long start, long contentLength) Constructs a newRangeHeaderResult
with the specified start position and content length- Parameters:
start
- the starting byte position of the rangecontentLength
- the length of the content to be served
-
-
Method Details
-
getStart
public long getStart()Returns the starting byte position of the range to be served- Returns:
- the start position of the range
-
getContentLength
public long getContentLength()Returns the length of the content to be served- Returns:
- the content length
-