Package akka.http.scaladsl.server
Class UnsatisfiableRangeRejection
java.lang.Object
akka.http.scaladsl.server.UnsatisfiableRangeRejection
- All Implemented Interfaces:
Rejection
,UnsatisfiableRangeRejection
,Rejection
,Serializable
,scala.Equals
,scala.Product
public final class UnsatisfiableRangeRejection
extends Object
implements UnsatisfiableRangeRejection, Rejection, scala.Product, 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:
-
Constructor Summary
ConstructorsConstructorDescriptionUnsatisfiableRangeRejection
(scala.collection.immutable.Seq<ByteRange> unsatisfiableRanges, long actualEntityLength) -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface scala.Equals
canEqual, equals
Methods inherited from interface scala.Product
productArity, productElement, productElementName, productElementNames, productIterator, productPrefix
-
Constructor Details
-
UnsatisfiableRangeRejection
public UnsatisfiableRangeRejection(scala.collection.immutable.Seq<ByteRange> unsatisfiableRanges, long actualEntityLength)
-
-
Method Details
-
apply
public abstract static R apply(T1 v1, T2 v2) -
toString
-
unsatisfiableRanges
-
actualEntityLength
public long actualEntityLength()- Specified by:
actualEntityLength
in interfaceUnsatisfiableRangeRejection
-
getUnsatisfiableRanges
- Specified by:
getUnsatisfiableRanges
in interfaceUnsatisfiableRangeRejection
-