Package akka.http.scaladsl.server
Class UnsupportedRequestContentTypeRejection
- java.lang.Object
-
- akka.http.scaladsl.server.UnsupportedRequestContentTypeRejection
-
- All Implemented Interfaces:
Rejection,UnsupportedRequestContentTypeRejection,Rejection,java.io.Serializable,scala.Equals,scala.Product
public final class UnsupportedRequestContentTypeRejection extends java.lang.Object implements UnsupportedRequestContentTypeRejection, Rejection, scala.Product, java.io.Serializable
Rejection created by unmarshallers. Signals that the request was rejected because the requests content-type is unsupported.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description UnsupportedRequestContentTypeRejection(scala.collection.immutable.Set<ContentTypeRange> supported)Deprecated.for binary compatibility.UnsupportedRequestContentTypeRejection(scala.collection.immutable.Set<ContentTypeRange> supported, scala.Option<ContentType> contentType)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static UnsupportedRequestContentTypeRejectionapply(scala.collection.immutable.Set<ContentTypeRange> supported)Deprecated.for binary compatibility.static UnsupportedRequestContentTypeRejectionapply(scala.collection.immutable.Set<ContentTypeRange> supported, scala.Option<ContentType> contentType)booleancanEqual(java.lang.Object that)scala.Option<ContentType>contentType()UnsupportedRequestContentTypeRejectioncopy(scala.collection.immutable.Set<ContentTypeRange> supported)Deprecated.for binary compatibility.UnsupportedRequestContentTypeRejectioncopy(scala.collection.immutable.Set<ContentTypeRange> supported, scala.Option<ContentType> contentType)Deprecated.for binary compatibility.booleanequals(java.lang.Object that)java.util.Set<ContentTypeRange>getSupported()intproductArity()java.lang.ObjectproductElement(int n)scala.collection.immutable.Set<ContentTypeRange>supported()static java.lang.StringtoString()static scala.Option<scala.collection.immutable.Set<ContentTypeRange>>unapply(UnsupportedRequestContentTypeRejection rejection)
-
-
-
Constructor Detail
-
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 Detail
-
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
public static java.lang.String toString()
-
supported
public scala.collection.immutable.Set<ContentTypeRange> supported()
-
contentType
public scala.Option<ContentType> contentType()
-
getSupported
public java.util.Set<ContentTypeRange> getSupported()
- Specified by:
getSupportedin 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
public boolean canEqual(java.lang.Object that)
- Specified by:
canEqualin interfacescala.Equals
-
equals
public boolean equals(java.lang.Object that)
- Specified by:
equalsin interfacescala.Equals- Overrides:
equalsin classjava.lang.Object
-
productArity
public int productArity()
- Specified by:
productArityin interfacescala.Product
-
productElement
public java.lang.Object productElement(int n)
- Specified by:
productElementin interfacescala.Product
-
-