Class ContentTypeResolver$


public class ContentTypeResolver$ extends Object
  • Field Details

    • MODULE$

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

    • ContentTypeResolver$

      public ContentTypeResolver$()
  • Method Details

    • Default

      public ContentTypeResolver Default()
      The default way of resolving a filename to a ContentType is by looking up the file extension in the registry of all defined media-types. By default all non-binary file content is assumed to be UTF-8 encoded.
    • withDefaultCharset

      public ContentTypeResolver withDefaultCharset(HttpCharset charset)
    • apply

      public ContentTypeResolver apply(scala.Function1<String,ContentType> f)