Class CorsRejection.InvalidOrigin
java.lang.Object
org.apache.pekko.http.cors.scaladsl.CorsRejection.InvalidOrigin
- All Implemented Interfaces:
Serializable,CorsRejection.Cause,CorsRejection.InvalidOrigin,CorsRejection.Cause,scala.Equals,scala.Product
- Enclosing class:
- CorsRejection
public static final class CorsRejection.InvalidOrigin
extends Object
implements CorsRejection.InvalidOrigin, CorsRejection.Cause, scala.Product, Serializable
Signals the CORS request was rejected because its origin was invalid. An empty list means the Origin header was
null.- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionDescription of this Cause in a human-readable format.scala.collection.immutable.Seq<HttpOrigin>origins()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
-
InvalidOrigin
-
-
Method Details
-
origins
-
description
Description copied from interface:CorsRejection.CauseDescription of this Cause in a human-readable format. Can be used for debugging or custom Rejection handlers.- Specified by:
descriptionin interfaceCorsRejection.Cause- Returns:
- (undocumented)
-
getOrigins
- Specified by:
getOriginsin interfaceCorsRejection.InvalidOrigin
-