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 UnsupportedRequestContentTypeRejection
apply(scala.collection.immutable.Set<ContentTypeRange> supported)
Deprecated.for binary compatibility.static UnsupportedRequestContentTypeRejection
apply(scala.collection.immutable.Set<ContentTypeRange> supported, scala.Option<ContentType> contentType)
boolean
canEqual(java.lang.Object that)
scala.Option<ContentType>
contentType()
UnsupportedRequestContentTypeRejection
copy(scala.collection.immutable.Set<ContentTypeRange> supported)
Deprecated.for binary compatibility.UnsupportedRequestContentTypeRejection
copy(scala.collection.immutable.Set<ContentTypeRange> supported, scala.Option<ContentType> contentType)
Deprecated.for binary compatibility.boolean
equals(java.lang.Object that)
java.util.Set<ContentTypeRange>
getSupported()
int
productArity()
java.lang.Object
productElement(int n)
scala.collection.immutable.Set<ContentTypeRange>
supported()
static java.lang.String
toString()
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:
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
public boolean canEqual(java.lang.Object that)
- Specified by:
canEqual
in interfacescala.Equals
-
equals
public boolean equals(java.lang.Object that)
- Specified by:
equals
in interfacescala.Equals
- Overrides:
equals
in classjava.lang.Object
-
productArity
public int productArity()
- Specified by:
productArity
in interfacescala.Product
-
productElement
public java.lang.Object productElement(int n)
- Specified by:
productElement
in interfacescala.Product
-
-