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 class
ByteRange.FromOffset
static class
ByteRange.FromOffset$
static class
ByteRange.Slice
static class
ByteRange.Slice$
static class
ByteRange.Suffix
Used to specify the lastlength
bytes of an entity.static class
ByteRange.Suffix$
-
Constructor Summary
Constructors Constructor Description ByteRange()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ByteRange.Slice
apply(long first, long last)
static ByteRange.FromOffset
fromOffset(long offset)
java.util.OptionalLong
getOffset()
Java APIjava.util.OptionalLong
getSliceFirst()
Java APIjava.util.OptionalLong
getSliceLast()
Java APIjava.util.OptionalLong
getSuffixLength()
Java APIboolean
isFromOffset()
Java APIboolean
isSlice()
Java APIboolean
isSuffix()
Java APIstatic ByteRange.Suffix
suffix(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:
getSliceFirst
in classByteRange
-
getSliceLast
public java.util.OptionalLong getSliceLast()
Java API- Specified by:
getSliceLast
in classByteRange
-
getOffset
public java.util.OptionalLong getOffset()
Java API
-
getSuffixLength
public java.util.OptionalLong getSuffixLength()
Java API- Specified by:
getSuffixLength
in classByteRange
-
isFromOffset
public boolean isFromOffset()
Java API- Specified by:
isFromOffset
in classByteRange
-
-