com.tle.web.scripting.advanced.objects
Interface MimeScriptObject
Declaration: public interface MimeScriptObject extends ScriptObject
All Superinterfaces: ScriptObject, java.io.Serializable

 

Referenced by the 'mime' variable in script.

 

 

Fields Summary
static java.lang.String DEFAULT_VARIABLE
    

 

 

Methods Summary
abstract MimeTypeScriptType getMimeTypeForFilename(java.lang.String filename)
    
Get at MimeTypeScriptType for the given filename (will read the extension on the filename to determine the MIME type)

 

Methods inherited from interface: com.tle.common.scripting.ScriptObject
scriptEnter, scriptExit

 

 

 

 

DEFAULT_VARIABLE

 

public static final java.lang.String DEFAULT_VARIABLE

 

See also: Constants

 

 

 

 

getMimeTypeForFilename

 

public abstract MimeTypeScriptType getMimeTypeForFilename( java.lang.String filename)

 

Get at MimeTypeScriptType for the given filename (will read the extension on the filename to determine the MIME type)

 

Parameters:
filename-
The name of the file
Returns:
A MimeTypeScriptType object, or null if the mime type could not be determined.