Class UnsatisfiableRangeRejection
java.lang.Object
org.apache.pekko.http.scaladsl.server.UnsatisfiableRangeRejection
- All Implemented Interfaces:
Serializable,Rejection,UnsatisfiableRangeRejection,Rejection,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, waitMethods inherited from interface scala.Equals
canEqual, equalsMethods 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:
actualEntityLengthin interfaceUnsatisfiableRangeRejection
-
getUnsatisfiableRanges
- Specified by:
getUnsatisfiableRangesin interfaceUnsatisfiableRangeRejection
-