Package akka.http.javadsl.model
Class ContentRange
- java.lang.Object
-
- akka.http.javadsl.model.ContentRange
-
- Direct Known Subclasses:
ContentRange.Default
,ContentRange.Other
,ContentRange.Unsatisfiable
public abstract class ContentRange extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description ContentRange()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description static ContentRange
create(long first, long last)
static ContentRange
create(long first, long last, long instanceLength)
static ContentRange
create(long first, long last, java.util.OptionalLong instanceLength)
static ContentRange
createOther(java.lang.String value)
static ContentRange
createUnsatisfiable(long length)
abstract java.util.OptionalLong
getInstanceLength()
abstract java.util.Optional<java.lang.String>
getOtherValue()
abstract java.util.OptionalLong
getSatisfiableFirst()
abstract java.util.OptionalLong
getSatisfiableLast()
abstract boolean
isByteContentRange()
abstract boolean
isOther()
abstract boolean
isSatisfiable()
-
-
-
Method Detail
-
isByteContentRange
public abstract boolean isByteContentRange()
-
isSatisfiable
public abstract boolean isSatisfiable()
-
isOther
public abstract boolean isOther()
-
getSatisfiableFirst
public abstract java.util.OptionalLong getSatisfiableFirst()
-
getSatisfiableLast
public abstract java.util.OptionalLong getSatisfiableLast()
-
getOtherValue
public abstract java.util.Optional<java.lang.String> getOtherValue()
-
getInstanceLength
public abstract java.util.OptionalLong getInstanceLength()
-
create
public static ContentRange create(long first, long last)
-
create
public static ContentRange create(long first, long last, long instanceLength)
-
create
public static ContentRange create(long first, long last, java.util.OptionalLong instanceLength)
-
createUnsatisfiable
public static ContentRange createUnsatisfiable(long length)
-
createOther
public static ContentRange createOther(java.lang.String value)
-
-