Class TooManyRangesRejection
java.lang.Object
org.apache.pekko.http.scaladsl.server.TooManyRangesRejection
- All Implemented Interfaces:
Serializable,Rejection,TooManyRangesRejection,Rejection,scala.Equals,scala.Product
public final class TooManyRangesRejection
extends Object
implements TooManyRangesRejection, Rejection, scala.Product, Serializable
Rejection created by range directives.
Signals that the request contains too many ranges. An irregular high number of ranges
indicates a broken client or a denial of service attack.
- See Also:
-
Constructor Summary
Constructors -
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
-
TooManyRangesRejection
public TooManyRangesRejection(int maxRanges)
-
-
Method Details
-
apply
public abstract static R apply(T1 v1) -
toString
-
maxRanges
public int maxRanges()- Specified by:
maxRangesin interfaceTooManyRangesRejection
-