Package akka.http.scaladsl.model.headers
Class ByteRange.Suffix
- java.lang.Object
-
- akka.http.javadsl.model.headers.ByteRange
-
- akka.http.scaladsl.model.headers.ByteRange
-
- akka.http.scaladsl.model.headers.ByteRange.Suffix
-
- All Implemented Interfaces:
Renderable
,ToStringRenderable
,ValueRenderable
,java.io.Serializable
,scala.Equals
,scala.Product
- Enclosing class:
- ByteRange
public static final class ByteRange.Suffix extends ByteRange implements scala.Product, java.io.Serializable
Used to specify the lastlength
bytes of an entity. If the entity is shorter than the givenlength
, then the range spans the entire entity.- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class akka.http.scaladsl.model.headers.ByteRange
ByteRange.FromOffset, ByteRange.FromOffset$, ByteRange.Slice, ByteRange.Slice$, ByteRange.Suffix, ByteRange.Suffix$
-
-
Constructor Summary
Constructors Constructor Description Suffix(long length)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.OptionalLong
getSuffixLength()
Java APIboolean
isSuffix()
Java APIlong
length()
<R extends Rendering>
Renderingrender(R r)
-
Methods inherited from class akka.http.scaladsl.model.headers.ByteRange
apply, fromOffset, getOffset, getSliceFirst, getSliceLast, isFromOffset, isSlice, suffix
-
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 scala.Product
productArity, productElement, productElementName, productElementNames, productIterator, productPrefix
-
Methods inherited from interface akka.http.impl.util.ToStringRenderable
toString
-
Methods inherited from interface akka.http.impl.util.ValueRenderable
value
-
-
-
-
Method Detail
-
length
public long length()
-
render
public <R extends Rendering> Rendering render(R r)
- Specified by:
render
in interfaceRenderable
-
getSuffixLength
public java.util.OptionalLong getSuffixLength()
Java API- Overrides:
getSuffixLength
in classByteRange
-
-