artefaktur
software engineer &        architecture

 
 
 
 

class MimeTypeMapper

Modules   Namespace List   Class Hierarchy   Alphabetical List   Compound List   Namespace Members   Compound Members   Related Pages  

acdk::net::MimeTypeMapper Class Reference

#include <MimeTypeMapper.h>

Inheritance diagram for acdk::net::MimeTypeMapper:

acdk::lang::Object acdk::net::FileNameMap acdk::lang::ObjectBase acdk::lang::dmi::StdDispatch List of all members.

Public Member Functions

 MimeTypeMapper ()
virtual RString getContentTypeFor (IN(RString) filename)
 The method returns the MIME type of the filename passed as an argument.


Static Protected Attributes

char * mime_strings [][2]
 This array of strings is used to identify a MIME type based on a file extension.


Static Private Member Functions

RHashMap mime_types ()

Static Private Attributes

RHashMap __mime_types
 The MIME types above are put into this Hashtable for faster lookup.


Constructor & Destructor Documentation

acdk::net::MimeTypeMapper::MimeTypeMapper  )  [inline]
 


Member Function Documentation

virtual RString acdk::net::MimeTypeMapper::getContentTypeFor IN(RString)  filename  )  [virtual]
 

The method returns the MIME type of the filename passed as an argument.

The value returned is based on the extension of the filename. The default content type returned if this method cannot determine the actual content type is "

Parameters:
filename The name of the file to return the MIME type for
Returns:
The MIME type

Implements acdk::net::FileNameMap.

RHashMap acdk::net::MimeTypeMapper::mime_types  )  [static, private]
 


Member Data Documentation

RHashMap acdk::net::MimeTypeMapper::__mime_types [static, private]
 

The MIME types above are put into this Hashtable for faster lookup.

char* acdk::net::MimeTypeMapper::mime_strings[][2] [static, protected]
 

This array of strings is used to identify a MIME type based on a file extension.

This is list is based on the Apache mime.types file.

 
Last modified 2005-05-08 18:33 by SYSTEM By Artefaktur, Ing. Bureau Kommer