Package akka.http.scaladsl.server
Class UnsatisfiableRangeRejection
- java.lang.Object
-
- akka.http.scaladsl.server.UnsatisfiableRangeRejection
-
- All Implemented Interfaces:
Rejection
,UnsatisfiableRangeRejection
,Rejection
,java.io.Serializable
,scala.Equals
,scala.Product
public final class UnsatisfiableRangeRejection extends java.lang.Object implements UnsatisfiableRangeRejection, Rejection, scala.Product, java.io.Serializable
Rejection created by range directives. Signals that the request was rejected because the requests contains only unsatisfiable ByteRanges. The actualEntityLength gives the client a hint to create satisfiable ByteRanges.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description UnsatisfiableRangeRejection(scala.collection.immutable.Seq<ByteRange> unsatisfiableRanges, long actualEntityLength)
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description long
actualEntityLength()
abstract static R
apply(T1 v1, T2 v2)
java.lang.Iterable<ByteRange>
getUnsatisfiableRanges()
static java.lang.String
toString()
scala.collection.immutable.Seq<ByteRange>
unsatisfiableRanges()
-
-
-
Constructor Detail
-
UnsatisfiableRangeRejection
public UnsatisfiableRangeRejection(scala.collection.immutable.Seq<ByteRange> unsatisfiableRanges, long actualEntityLength)
-
-
Method Detail
-
apply
public abstract static R apply(T1 v1, T2 v2)
-
toString
public static java.lang.String toString()
-
unsatisfiableRanges
public scala.collection.immutable.Seq<ByteRange> unsatisfiableRanges()
-
actualEntityLength
public long actualEntityLength()
- Specified by:
actualEntityLength
in interfaceUnsatisfiableRangeRejection
-
getUnsatisfiableRanges
public java.lang.Iterable<ByteRange> getUnsatisfiableRanges()
- Specified by:
getUnsatisfiableRanges
in interfaceUnsatisfiableRangeRejection
-
-