Package akka.http.scaladsl.model.headers
Class ByteRange
- java.lang.Object
-
- akka.http.javadsl.model.headers.ByteRange
-
- akka.http.scaladsl.model.headers.ByteRange
-
- All Implemented Interfaces:
Renderable,ToStringRenderable,ValueRenderable
- Direct Known Subclasses:
ByteRange.FromOffset,ByteRange.Slice,ByteRange.Suffix
public abstract class ByteRange extends ByteRange implements ValueRenderable
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classByteRange.FromOffsetstatic classByteRange.FromOffset$static classByteRange.Slicestatic classByteRange.Slice$static classByteRange.SuffixUsed to specify the lastlengthbytes of an entity.static classByteRange.Suffix$
-
Constructor Summary
Constructors Constructor Description ByteRange()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ByteRange.Sliceapply(long first, long last)static ByteRange.FromOffsetfromOffset(long offset)java.util.OptionalLonggetOffset()Java APIjava.util.OptionalLonggetSliceFirst()Java APIjava.util.OptionalLonggetSliceLast()Java APIjava.util.OptionalLonggetSuffixLength()Java APIbooleanisFromOffset()Java APIbooleanisSlice()Java APIbooleanisSuffix()Java APIstatic ByteRange.Suffixsuffix(long length)Constructs a range that spans the last `length` bytes of an entity.-
Methods inherited from class akka.http.javadsl.model.headers.ByteRange
createFromOffset, createSlice, createSuffix
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface akka.http.impl.util.Renderable
render
-
Methods inherited from interface akka.http.impl.util.ToStringRenderable
toString
-
Methods inherited from interface akka.http.impl.util.ValueRenderable
value
-
-
-
-
Method Detail
-
apply
public static ByteRange.Slice apply(long first, long last)
-
fromOffset
public static ByteRange.FromOffset fromOffset(long offset)
-
suffix
public static ByteRange.Suffix suffix(long length)
Constructs a range that spans the last `length` bytes of an entity.
-
getSliceFirst
public java.util.OptionalLong getSliceFirst()
Java API- Specified by:
getSliceFirstin classByteRange
-
getSliceLast
public java.util.OptionalLong getSliceLast()
Java API- Specified by:
getSliceLastin classByteRange
-
getOffset
public java.util.OptionalLong getOffset()
Java API
-
getSuffixLength
public java.util.OptionalLong getSuffixLength()
Java API- Specified by:
getSuffixLengthin classByteRange
-
isFromOffset
public boolean isFromOffset()
Java API- Specified by:
isFromOffsetin classByteRange
-
-