public class ContentType$
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static ContentType$ |
MODULE$
Static reference to the singleton instance of this Scala object.
|
Constructor and Description |
---|
ContentType$() |
Modifier and Type | Method and 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 a
ContentType value from the given String. |
scala.Option<scala.Tuple2<MediaType,scala.Option<HttpCharset>>> |
unapply(ContentType contentType) |
public static final ContentType$ MODULE$
public ContentType.Binary apply(MediaType.Binary mediaType)
public ContentType.WithFixedCharset apply(MediaType.WithFixedCharset mediaType)
public ContentType.WithCharset apply(MediaType.WithOpenCharset mediaType, HttpCharset charset)
public ContentType apply(MediaType mediaType, scala.Function0<HttpCharset> charset)
public scala.Option<scala.Tuple2<MediaType,scala.Option<HttpCharset>>> unapply(ContentType contentType)
public scala.util.Either<scala.collection.immutable.List<ErrorInfo>,ContentType> parse(java.lang.String value)
ContentType
value from the given String. Returns Right(contentType)
if successful and
Left(errors)
otherwise.value
- (undocumented)