Class UnsupportedRequestContentTypeRejection
java.lang.Object
org.apache.pekko.http.scaladsl.server.UnsupportedRequestContentTypeRejection
- All Implemented Interfaces:
Serializable,Rejection,UnsupportedRequestContentTypeRejection,Rejection,scala.Equals,scala.Product
public final class UnsupportedRequestContentTypeRejection
extends Object
implements UnsupportedRequestContentTypeRejection, Rejection, scala.Product, Serializable
Rejection created by unmarshallers.
Signals that the request was rejected because the requests content-type is unsupported.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionUnsupportedRequestContentTypeRejection(scala.collection.immutable.Set<ContentTypeRange> supported, scala.Option<ContentType> contentType) -
Method Summary
Modifier and TypeMethodDescriptionapply(scala.collection.immutable.Set<ContentTypeRange> supported) Deprecated.for binary compatibility.apply(scala.collection.immutable.Set<ContentTypeRange> supported, scala.Option<ContentType> contentType) booleanscala.Option<ContentType>booleanintproductElement(int n) scala.collection.immutable.Set<ContentTypeRange>static StringtoString()static scala.Option<scala.collection.immutable.Set<ContentTypeRange>>unapply(UnsupportedRequestContentTypeRejection rejection) Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface scala.Product
productElementName, productElementNames, productIterator, productPrefix
-
Constructor Details
-
UnsupportedRequestContentTypeRejection
public UnsupportedRequestContentTypeRejection(scala.collection.immutable.Set<ContentTypeRange> supported, scala.Option<ContentType> contentType)
-
-
Method Details
-
apply
public static UnsupportedRequestContentTypeRejection apply(scala.collection.immutable.Set<ContentTypeRange> supported, scala.Option<ContentType> contentType) -
apply
public static UnsupportedRequestContentTypeRejection apply(scala.collection.immutable.Set<ContentTypeRange> supported) Deprecated.for binary compatibility. Since Akka HTTP 10.1.9. -
unapply
public static scala.Option<scala.collection.immutable.Set<ContentTypeRange>> unapply(UnsupportedRequestContentTypeRejection rejection) -
toString
-
supported
-
contentType
-
getSupported
- Specified by:
getSupportedin interfaceUnsupportedRequestContentTypeRejection
-
canEqual
- Specified by:
canEqualin interfacescala.Equals
-
equals
-
productArity
public int productArity()- Specified by:
productArityin interfacescala.Product
-
productElement
- Specified by:
productElementin interfacescala.Product
-