activemq-cpp-3.9.0
decaf::net::FileNameMap Class Referenceabstract

Defines a scheme for mapping a filename type to a MIME content type. More...

#include <src/main/decaf/net/FileNameMap.h>

Public Member Functions

virtual ~FileNameMap ()
 
virtual std::string getContentTypeFor (const std::string &filename)=0
 Determines the MIME type for a file. More...
 

Detailed Description

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

Constructor & Destructor Documentation

virtual decaf::net::FileNameMap::~FileNameMap ( )
virtual

Member Function Documentation

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
filenamethe 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: