Available Velocity Context Objects in Exporters
Since the export functionality is not implemented as a Struts action, it does not inherit the default Velocity context used by Confluence actions. It creates its own context and populates it with a separate list of components.
All exporters have at least the items listed below. Some exporters may extend this with other objects.
Variable | Description | Class Reference |
---|---|---|
$generalUtil | A GeneralUtil object with several useful methods, including URL encoding. | |
$stringUtils | Common utilities for string manipulation. | |
$rendererBean | Mostly for internal use, but can also be used for manipulating page or space exports. | |
$exportDate | A java.util.Date created when the export is actually performed. | |
$exportContent | An ExportContext object which holds the context in which the export is performed, such as the user performing the export. | |
$dateFormatter | Provides a date and time formatter suitable for the exporting user's locale and environment. | |
$baseUrl | The base URL of the Confluence installation (http://<server>:<port>/contextPath). | String |