Logo Search packages:      
Sourcecode: jaminid version File versions  Download package

static String com::prolixtech::jaminid::Protocol::getMIME ( String  extension  )  [inline, static]

MIME type accessor. By using this, we understand that sometimes the wrong headers might go out for a badly named file (e.g. an mp3 file with extension .txt but this is how all the major HTTP servers do it anyway.

Parameters:
extension the extension of the file
Returns:
the MIME type of the file according to the extension

Definition at line 236 of file Protocol.java.

                                                   {
        return MIME.getProperty(extension.toLowerCase());
    }


Generated by  Doxygen 1.6.0   Back to index