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
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class
static class
static final class
static class
static final class
Used to specify the lastlength
bytes of an entity.static class
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ByteRange.Slice
apply
(long first, long last) static ByteRange.FromOffset
fromOffset
(long offset) Java APIJava APIJava APIJava APIboolean
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
-
Constructor Details
-
ByteRange
public ByteRange()
-
-
Method Details
-
apply
-
fromOffset
-
suffix
Constructs a range that spans the last `length` bytes of an entity. -
getSliceFirst
Java API- Specified by:
getSliceFirst
in classByteRange
-
getSliceLast
Java API- Specified by:
getSliceLast
in classByteRange
-
getOffset
Java API -
getSuffixLength
Java API- Specified by:
getSuffixLength
in classByteRange
-
isSlice
public boolean isSlice()Java API -
isFromOffset
public boolean isFromOffset()Java API- Specified by:
isFromOffset
in classByteRange
-
isSuffix
public boolean isSuffix()Java API
-