Defines a scheme for mapping a filename type to a MIME content type.
More...
#include <src/main/decaf/net/FileNameMap.h>
Defines a scheme for mapping a filename type to a MIME content type.
Mainly used by URLStreamHandler for determining the right content handler to handle the resource.
- Since
- 1.0
◆ ~FileNameMap()
virtual decaf::net::FileNameMap::~FileNameMap |
( |
| ) |
|
|
virtual |
◆ getContentTypeFor()
virtual std::string decaf::net::FileNameMap::getContentTypeFor |
( |
const std::string & | filename | ) |
|
|
pure virtual |
Determines the MIME type for a file fileName
of a URL.
- Parameters
-
filename | the name of the file to consider. |
- Returns
- the appropriate MIME type of the given file.
The documentation for this class was generated from the following file: