Class CorsRejection
java.lang.Object
org.apache.pekko.http.cors.scaladsl.CorsRejection
- All Implemented Interfaces:
Serializable,CorsRejection,CustomRejection,Rejection,Rejection,scala.Equals,scala.Product
public final class CorsRejection
extends Object
implements CorsRejection, Rejection, scala.Product, Serializable
Rejection created by the CORS directives. Signal the CORS request was rejected. The reason of the rejection is
specified in the cause.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceSignals the cause of the failed CORS request.static final classSignals the CORS request was rejected because its headers were invalid.static classstatic final classSignals the CORS request was rejected because its method was invalid.static classstatic final classSignals the CORS request was rejected because its origin was invalid.static classstatic classSignals the CORS request was malformed.Nested classes/interfaces inherited from interface org.apache.pekko.http.cors.javadsl.CorsRejection
CorsRejection.Malformed -
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
-
CorsRejection
-
-
Method Details
-
cause
- Specified by:
causein interfaceCorsRejection
-