Class MediaType$


  • public class MediaType$
    extends java.lang.Object
    • Field Detail

      • MODULE$

        public static final MediaType$ MODULE$
        Static reference to the singleton instance of this Scala object.
    • Constructor Detail

      • MediaType$

        public MediaType$()
    • Method Detail

      • 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)
      • 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)
      • 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 a MediaType value from the given String. Returns Right(mediaType) if successful and Left(errors) otherwise.
        Parameters:
        value - (undocumented)
        Returns:
        (undocumented)
      • unapply

        public scala.Option<java.lang.String> unapply​(MediaType mediaType)