User's Manual

36 Chapter 3
Parameters
This function has no parameters.
getJobTempDir()
Returns the path to a local temporary directory for use by the current job. This directory is
created at the start of each request and deleted when the request completes.
Syntax
var tmpDir = req.getJobTempDir();
Parameters
This function has no parameters.
getBatchTempDir()
Returns the path to a local temporary directory that is shared by all jobs within a given
batch. This directory may be used to share state between different jobs in a given batch. For
a description of the MediaRich batch interface, see the .NET or Java API online
documentation available in the SDK folder.
Syntax
var tmpDir = req.getBatchTempDir();
Parameters
This function takes no parameters.
getPath()
Returns the path previously set using setPath().
Syntax
resp.getPath();
Parameters
This function takes no parameters.
HTTP Response Methods
The resp object includes the following methods:
setObject()
getObject()
setPath()
getPath()
setMedia()
getMedia()
setResponseType()
getResponseType()
setSaveParameters()