Package akka.http.scaladsl.server
Class UnsupportedRequestContentTypeRejection
java.lang.Object
akka.http.scaladsl.server.UnsupportedRequestContentTypeRejection
- All Implemented Interfaces:
Rejection
,UnsupportedRequestContentTypeRejection
,Rejection
,Serializable
,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) Deprecated.for binary compatibility.UnsupportedRequestContentTypeRejection
(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) boolean
scala.Option<ContentType>
copy
(scala.collection.immutable.Set<ContentTypeRange> supported) Deprecated.for binary compatibility.copy
(scala.collection.immutable.Set<ContentTypeRange> supported, scala.Option<ContentType> contentType) Deprecated.for binary compatibility.boolean
int
productElement
(int n) scala.collection.immutable.Set<ContentTypeRange>
static String
toString()
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, wait
Methods inherited from interface scala.Product
productElementName, productElementNames, productIterator, productPrefix
-
Constructor Details
-
UnsupportedRequestContentTypeRejection
public UnsupportedRequestContentTypeRejection(scala.collection.immutable.Set<ContentTypeRange> supported, scala.Option<ContentType> contentType) -
UnsupportedRequestContentTypeRejection
public UnsupportedRequestContentTypeRejection(scala.collection.immutable.Set<ContentTypeRange> supported) Deprecated.for binary compatibility. Since 10.1.9.
-
-
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 10.1.9. -
unapply
public static scala.Option<scala.collection.immutable.Set<ContentTypeRange>> unapply(UnsupportedRequestContentTypeRejection rejection) -
toString
-
supported
-
contentType
-
getSupported
- Specified by:
getSupported
in interfaceUnsupportedRequestContentTypeRejection
-
copy
public UnsupportedRequestContentTypeRejection copy(scala.collection.immutable.Set<ContentTypeRange> supported) Deprecated.for binary compatibility. Since 10.1.9. -
copy
public UnsupportedRequestContentTypeRejection copy(scala.collection.immutable.Set<ContentTypeRange> supported, scala.Option<ContentType> contentType) Deprecated.for binary compatibility. Since 10.1.9. -
canEqual
- Specified by:
canEqual
in interfacescala.Equals
-
equals
-
productArity
public int productArity()- Specified by:
productArity
in interfacescala.Product
-
productElement
- Specified by:
productElement
in interfacescala.Product
-