Package akka.http.scaladsl.model
Class ContentType$
- java.lang.Object
-
- akka.http.scaladsl.model.ContentType$
-
public class ContentType$ extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description static ContentType$
MODULE$
Static reference to the singleton instance of this Scala object.
-
Constructor Summary
Constructors Constructor Description ContentType$()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ContentType.Binary
apply(MediaType.Binary mediaType)
ContentType.WithFixedCharset
apply(MediaType.WithFixedCharset mediaType)
ContentType.WithCharset
apply(MediaType.WithOpenCharset mediaType, HttpCharset charset)
ContentType
apply(MediaType mediaType, scala.Function0<HttpCharset> charset)
scala.util.Either<scala.collection.immutable.List<ErrorInfo>,ContentType>
parse(java.lang.String value)
Tries to parse aContentType
value from the given String.scala.Option<scala.Tuple2<MediaType,scala.Option<HttpCharset>>>
unapply(ContentType contentType)
-
-
-
Field Detail
-
MODULE$
public static final ContentType$ MODULE$
Static reference to the singleton instance of this Scala object.
-
-
Method Detail
-
apply
public ContentType.Binary apply(MediaType.Binary mediaType)
-
apply
public ContentType.WithFixedCharset apply(MediaType.WithFixedCharset mediaType)
-
apply
public ContentType.WithCharset apply(MediaType.WithOpenCharset mediaType, HttpCharset charset)
-
apply
public ContentType apply(MediaType mediaType, scala.Function0<HttpCharset> charset)
-
unapply
public scala.Option<scala.Tuple2<MediaType,scala.Option<HttpCharset>>> unapply(ContentType contentType)
-
parse
public scala.util.Either<scala.collection.immutable.List<ErrorInfo>,ContentType> parse(java.lang.String value)
Tries to parse aContentType
value from the given String. ReturnsRight(contentType)
if successful andLeft(errors)
otherwise.- Parameters:
value
- (undocumented)- Returns:
- (undocumented)
-
-