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 Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default ContentTypeResolver
asScala()
Returns a Scala DSL representation of this content type resolverContentType
resolve(java.lang.String fileName)
-
-
-
Method Detail
-
resolve
ContentType resolve(java.lang.String fileName)
-
asScala
default ContentTypeResolver asScala()
Returns a Scala DSL representation of this content type resolver
-
-