Package com.oracle.bmc.model
Class Range
- java.lang.Object
- 
- com.oracle.bmc.model.Range
 
- 
 public class Range extends Object Class specifying a range-request is being made.Request mostly follows https://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.35, except only one range is allowed. For the purposes of the SDK, three types of requests are supported: - Exact range (0-100): All bytes in the given range
- Starts-at (100-): All bytes >= the start byte
- Last (-100): The last X bytes
 Also used to represent the range returned by the server (including the full content length, if known). 
- 
- 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description LonggetContentLength()The content length as returned by the server, or null if unknown.LonggetEndByte()The end byte, if given.LonggetStartByte()The start byte, if given.static Rangeparse(String value)Parse the “content-range” header per https://tools.ietf.org/html/rfc7233#section-4.2.StringtoString()
 
- 
- 
- 
Constructor Detail- 
Range@ConstructorProperties({"startByte","endByte"}) public Range(Long startByte, Long endByte) 
 
- 
 - 
Method Detail- 
parsepublic static Range parse(String value) Parse the “content-range” header per https://tools.ietf.org/html/rfc7233#section-4.2.Note, this is only for successful responses (206). It does not handle 416 (range not satisfiable). - Parameters:
- value- The response header value.
- Returns:
- A new Range header.
 
 - 
getStartBytepublic Long getStartByte() The start byte, if given.
 - 
getEndBytepublic Long getEndByte() The end byte, if given.
 - 
getContentLengthpublic Long getContentLength() The content length as returned by the server, or null if unknown.
 
- 
 
-