Package kilim.http
Class MimeTypes
java.lang.Object
kilim.http.MimeTypes
mime types to simplify building http servers.
this class is for convenience and doesn't attempt to be canonical
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
mimeTypes
-
-
Constructor Details
-
MimeTypes
public MimeTypes()
-
-
Method Details
-
mimeType
get the mime type of a file based on it's filename extension- Parameters:
file- a file- Returns:
- the mime type, or text/plain if not found
-
mimeType
get the mime type of a filename based on it's extension- Parameters:
name- the name of a file- Returns:
- the mime type, or text/plain if not found
-
cloneMap
-