Package org.eclipse.jetty.server
Class InclusiveByteRange
- java.lang.Object
-
- org.eclipse.jetty.server.InclusiveByteRange
-
@Deprecated(since="2021-05-27") public class InclusiveByteRange extends java.lang.Object
Deprecated.The Eclipse Jetty and Apache Felix Http Jetty packages are no longer supported.Byte range inclusive of end points.parses the following types of byte ranges: bytes=100-499 bytes=-300 bytes=100- bytes=1-2,2-3,6-,-2 given an entity length, converts range to string bytes 100-499/500
Based on RFC2616 3.12, 14.16, 14.35.1, 14.35.2And yes the spec does strangely say that while 10-20, is bytes 10 to 20 and 10- is bytes 10 until the end that -20 IS NOT bytes 0-20, but the last 20 bytes of the content.
-
-
Constructor Summary
Constructors Constructor Description InclusiveByteRange(long first, long last)
Deprecated.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description boolean
equals(java.lang.Object obj)
Deprecated.long
getFirst()
Deprecated.long
getLast()
Deprecated.long
getSize()
Deprecated.int
hashCode()
Deprecated.static java.util.List<InclusiveByteRange>
satisfiableRanges(java.util.Enumeration<java.lang.String> headers, long size)
Deprecated.static java.lang.String
to416HeaderRangeString(long size)
Deprecated.java.lang.String
toHeaderRangeString(long size)
Deprecated.java.lang.String
toString()
Deprecated.
-
-
-
Method Detail
-
getFirst
public long getFirst()
Deprecated.
-
getLast
public long getLast()
Deprecated.
-
getSize
public long getSize()
Deprecated.
-
toHeaderRangeString
public java.lang.String toHeaderRangeString(long size)
Deprecated.
-
hashCode
public int hashCode()
Deprecated.- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
Deprecated.- Overrides:
equals
in classjava.lang.Object
-
toString
public java.lang.String toString()
Deprecated.- Overrides:
toString
in classjava.lang.Object
-
satisfiableRanges
public static java.util.List<InclusiveByteRange> satisfiableRanges(java.util.Enumeration<java.lang.String> headers, long size)
Deprecated.- Parameters:
headers
- Enumeration of Range header fields.size
- Size of the resource.- Returns:
- List of satisfiable ranges
-
to416HeaderRangeString
public static java.lang.String to416HeaderRangeString(long size)
Deprecated.
-
-