Interface ContentTypeResolver

  • All Known Subinterfaces:
    ContentTypeResolver
    Functional Interface:
    This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

    @FunctionalInterface
    public interface ContentTypeResolver
    Implement this interface to provide a custom mapping from a file name to a [[akka.http.javadsl.model.ContentType]].
    • Method Detail

      • resolve

        ContentType resolve​(java.lang.String fileName)
      • asScala

        default ContentTypeResolver asScala()
        Returns a Scala DSL representation of this content type resolver