Package akka.http.scaladsl.server
Class InvalidOriginRejection
- java.lang.Object
-
- akka.http.scaladsl.server.InvalidOriginRejection
-
- All Implemented Interfaces:
InvalidOriginRejection
,Rejection
,Rejection
,java.io.Serializable
,scala.Equals
,scala.Product
public final class InvalidOriginRejection extends java.lang.Object implements InvalidOriginRejection, Rejection, scala.Product, java.io.Serializable
Rejection created byakka.http.scaladsl.server.directives.HeaderDirectives.checkSameOrigin
. Signals that the request was rejected becauseOrigin
header value is invalid.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description InvalidOriginRejection(scala.collection.immutable.Seq<HttpOrigin> allowedOrigins)
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description scala.collection.immutable.Seq<HttpOrigin>
allowedOrigins()
abstract static R
apply(T1 v1)
java.util.List<HttpOrigin>
getAllowedOrigins()
static java.lang.String
toString()
-
-
-
Constructor Detail
-
InvalidOriginRejection
public InvalidOriginRejection(scala.collection.immutable.Seq<HttpOrigin> allowedOrigins)
-
-
Method Detail
-
apply
public abstract static R apply(T1 v1)
-
toString
public static java.lang.String toString()
-
allowedOrigins
public scala.collection.immutable.Seq<HttpOrigin> allowedOrigins()
-
getAllowedOrigins
public java.util.List<HttpOrigin> getAllowedOrigins()
- Specified by:
getAllowedOrigins
in interfaceInvalidOriginRejection
-
-