Package spark.staticfiles
Class MimeType
java.lang.Object
spark.staticfiles.MimeType
Configures and holds mappings from file extensions to MIME types.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidprotected static StringfromPathInfo(String pathInfo) static StringfromResource(AbstractFileResolvingResource resource) protected static StringgetMimeType(String filename) static voidprotected static boolean
-
Constructor Details
-
MimeType
public MimeType()
-
-
Method Details
-
register
-
disableGuessing
public static void disableGuessing() -
fromResource
-
getMimeType
-
fromPathInfo
-
shouldGuess
protected static boolean shouldGuess()
-