Class ByteRange
java.lang.Object
org.apache.pekko.http.javadsl.model.headers.ByteRange
org.apache.pekko.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 classstatic classstatic final classstatic classstatic final classUsed to specify the lastlengthbytes of an entity.static class -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ByteRange.Sliceapply(long first, long last) static ByteRange.FromOffsetfromOffset(long offset) Java APIJava APIJava APIJava APIbooleanJava 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 org.apache.pekko.http.javadsl.model.headers.ByteRange
createFromOffset, createSlice, createSuffixMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.pekko.http.impl.util.Renderable
renderMethods inherited from interface org.apache.pekko.http.impl.util.ToStringRenderable
toStringMethods inherited from interface org.apache.pekko.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:
getSliceFirstin classByteRange
-
getSliceLast
Java API- Specified by:
getSliceLastin classByteRange
-
getOffset
Java API -
getSuffixLength
Java API- Specified by:
getSuffixLengthin classByteRange
-
isSlice
public boolean isSlice()Java API -
isFromOffset
public boolean isFromOffset()Java API- Specified by:
isFromOffsetin classByteRange
-
isSuffix
public boolean isSuffix()Java API
-