Package akka.http.scaladsl.model
Class MediaType$
- java.lang.Object
-
- akka.http.scaladsl.model.MediaType$
-
public class MediaType$ extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description static MediaType$
MODULE$
Static reference to the singleton instance of this Scala object.
-
Constructor Summary
Constructors Constructor Description MediaType$()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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 aMediaType
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)
-
-
-
Field Detail
-
MODULE$
public static final MediaType$ MODULE$
Static reference to the singleton instance of this Scala object.
-
-
Method Detail
-
applicationBinary
public MediaType.Binary applicationBinary(java.lang.String subType, MediaType.Compressibility comp, scala.collection.immutable.Seq<java.lang.String> fileExtensions)
-
applicationWithFixedCharset
public MediaType.WithFixedCharset applicationWithFixedCharset(java.lang.String subType, HttpCharset charset, scala.collection.immutable.Seq<java.lang.String> fileExtensions)
-
applicationWithOpenCharset
public MediaType.WithOpenCharset applicationWithOpenCharset(java.lang.String subType, scala.collection.immutable.Seq<java.lang.String> fileExtensions)
-
audio
public MediaType.Binary audio(java.lang.String subType, MediaType.Compressibility comp, scala.collection.immutable.Seq<java.lang.String> fileExtensions)
-
image
public MediaType.Binary image(java.lang.String subType, MediaType.Compressibility comp, scala.collection.immutable.Seq<java.lang.String> fileExtensions)
-
message
public MediaType.Binary message(java.lang.String subType, MediaType.Compressibility comp, scala.collection.immutable.Seq<java.lang.String> fileExtensions)
-
text
public MediaType.WithOpenCharset text(java.lang.String subType, scala.collection.immutable.Seq<java.lang.String> fileExtensions)
-
textWithFixedCharset
public MediaType.WithFixedCharset textWithFixedCharset(java.lang.String subType, HttpCharset charset, scala.collection.immutable.Seq<java.lang.String> fileExtensions)
-
video
public MediaType.Binary video(java.lang.String subType, MediaType.Compressibility comp, scala.collection.immutable.Seq<java.lang.String> fileExtensions)
-
font
public MediaType.Binary font(java.lang.String subType, MediaType.Compressibility comp, scala.collection.immutable.Seq<java.lang.String> fileExtensions)
-
customBinary
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)
-
customWithFixedCharset
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)
-
customWithOpenCharset
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)
-
customMultipart
public MediaType.Multipart customMultipart(java.lang.String subType, scala.collection.immutable.Map<java.lang.String,java.lang.String> params)
-
custom
public MediaType custom(java.lang.String value, boolean binary, MediaType.Compressibility comp, scala.collection.immutable.List<java.lang.String> fileExtensions)
-
parse
public scala.util.Either<scala.collection.immutable.List<ErrorInfo>,MediaType> parse(java.lang.String value)
Tries to parse aMediaType
value from the given String. ReturnsRight(mediaType)
if successful andLeft(errors)
otherwise.- Parameters:
value
- (undocumented)- Returns:
- (undocumented)
-
unapply
public scala.Option<java.lang.String> unapply(MediaType mediaType)
-
-