public class MediaType$
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static MediaType$ |
MODULE$
Static reference to the singleton instance of this Scala object.
|
Constructor and Description |
---|
MediaType$() |
Modifier and Type | Method and Description |
---|---|
MediaType.Binary |
applicationBinary(java.lang.String subType,
MediaType.Compressibility comp,
scala.collection.immutable.Seq<java.lang.String> fileExtensions) |
MediaType.WithFixedCharset |
applicationWithFixedCharset(java.lang.String subType,
HttpCharset charset,
scala.collection.immutable.Seq<java.lang.String> fileExtensions) |
MediaType.WithOpenCharset |
applicationWithOpenCharset(java.lang.String subType,
scala.collection.immutable.Seq<java.lang.String> fileExtensions) |
MediaType.Binary |
audio(java.lang.String subType,
MediaType.Compressibility comp,
scala.collection.immutable.Seq<java.lang.String> fileExtensions) |
MediaType |
custom(java.lang.String value,
boolean binary,
MediaType.Compressibility comp,
scala.collection.immutable.List<java.lang.String> fileExtensions) |
MediaType.Binary |
customBinary(java.lang.String mainType,
java.lang.String subType,
MediaType.Compressibility comp,
scala.collection.immutable.List<java.lang.String> fileExtensions,
scala.collection.immutable.Map<java.lang.String,java.lang.String> params,
boolean allowArbitrarySubtypes) |
MediaType.Multipart |
customMultipart(java.lang.String subType,
scala.collection.immutable.Map<java.lang.String,java.lang.String> params) |
MediaType.WithFixedCharset |
customWithFixedCharset(java.lang.String mainType,
java.lang.String subType,
HttpCharset charset,
scala.collection.immutable.List<java.lang.String> fileExtensions,
scala.collection.immutable.Map<java.lang.String,java.lang.String> params,
boolean allowArbitrarySubtypes) |
MediaType.WithOpenCharset |
customWithOpenCharset(java.lang.String mainType,
java.lang.String subType,
scala.collection.immutable.List<java.lang.String> fileExtensions,
scala.collection.immutable.Map<java.lang.String,java.lang.String> params,
boolean allowArbitrarySubtypes) |
MediaType.Binary |
font(java.lang.String subType,
MediaType.Compressibility comp,
scala.collection.immutable.Seq<java.lang.String> fileExtensions) |
MediaType.Binary |
image(java.lang.String subType,
MediaType.Compressibility comp,
scala.collection.immutable.Seq<java.lang.String> fileExtensions) |
MediaType.Binary |
message(java.lang.String subType,
MediaType.Compressibility comp,
scala.collection.immutable.Seq<java.lang.String> fileExtensions) |
scala.util.Either<scala.collection.immutable.List<ErrorInfo>,MediaType> |
parse(java.lang.String value)
Tries to parse a
MediaType value from the given String. |
MediaType.WithOpenCharset |
text(java.lang.String subType,
scala.collection.immutable.Seq<java.lang.String> fileExtensions) |
MediaType.WithFixedCharset |
textWithFixedCharset(java.lang.String subType,
HttpCharset charset,
scala.collection.immutable.Seq<java.lang.String> fileExtensions) |
scala.Option<java.lang.String> |
unapply(MediaType mediaType) |
MediaType.Binary |
video(java.lang.String subType,
MediaType.Compressibility comp,
scala.collection.immutable.Seq<java.lang.String> fileExtensions) |
public static final MediaType$ MODULE$
public MediaType.Binary applicationBinary(java.lang.String subType, MediaType.Compressibility comp, scala.collection.immutable.Seq<java.lang.String> fileExtensions)
public MediaType.WithFixedCharset applicationWithFixedCharset(java.lang.String subType, HttpCharset charset, scala.collection.immutable.Seq<java.lang.String> fileExtensions)
public MediaType.WithOpenCharset applicationWithOpenCharset(java.lang.String subType, scala.collection.immutable.Seq<java.lang.String> fileExtensions)
public MediaType.Binary audio(java.lang.String subType, MediaType.Compressibility comp, scala.collection.immutable.Seq<java.lang.String> fileExtensions)
public MediaType.Binary image(java.lang.String subType, MediaType.Compressibility comp, scala.collection.immutable.Seq<java.lang.String> fileExtensions)
public MediaType.Binary message(java.lang.String subType, MediaType.Compressibility comp, scala.collection.immutable.Seq<java.lang.String> fileExtensions)
public MediaType.WithOpenCharset text(java.lang.String subType, scala.collection.immutable.Seq<java.lang.String> fileExtensions)
public MediaType.WithFixedCharset textWithFixedCharset(java.lang.String subType, HttpCharset charset, scala.collection.immutable.Seq<java.lang.String> fileExtensions)
public MediaType.Binary video(java.lang.String subType, MediaType.Compressibility comp, scala.collection.immutable.Seq<java.lang.String> fileExtensions)
public MediaType.Binary font(java.lang.String subType, MediaType.Compressibility comp, scala.collection.immutable.Seq<java.lang.String> fileExtensions)
public MediaType.Binary customBinary(java.lang.String mainType, java.lang.String subType, MediaType.Compressibility comp, scala.collection.immutable.List<java.lang.String> fileExtensions, scala.collection.immutable.Map<java.lang.String,java.lang.String> params, boolean allowArbitrarySubtypes)
public MediaType.WithFixedCharset customWithFixedCharset(java.lang.String mainType, java.lang.String subType, HttpCharset charset, scala.collection.immutable.List<java.lang.String> fileExtensions, scala.collection.immutable.Map<java.lang.String,java.lang.String> params, boolean allowArbitrarySubtypes)
public MediaType.WithOpenCharset customWithOpenCharset(java.lang.String mainType, java.lang.String subType, scala.collection.immutable.List<java.lang.String> fileExtensions, scala.collection.immutable.Map<java.lang.String,java.lang.String> params, boolean allowArbitrarySubtypes)
public MediaType.Multipart customMultipart(java.lang.String subType, scala.collection.immutable.Map<java.lang.String,java.lang.String> params)
public MediaType custom(java.lang.String value, boolean binary, MediaType.Compressibility comp, scala.collection.immutable.List<java.lang.String> fileExtensions)
public scala.util.Either<scala.collection.immutable.List<ErrorInfo>,MediaType> parse(java.lang.String value)
MediaType
value from the given String.
Returns Right(mediaType)
if successful and Left(errors)
otherwise.value
- (undocumented)public scala.Option<java.lang.String> unapply(MediaType mediaType)