Interface I_CmsJsonRendererXmlContent
- All Superinterfaces:
I_CmsConfigurationParameterHandler
- All Known Implementing Classes:
CmsJsonRendererXmlContent
Renders a single-locale content tree as JSON.
-
Field Summary
Fields inherited from interface org.opencms.configuration.I_CmsConfigurationParameterHandler
ADD_PARAMETER_METHOD, INIT_CONFIGURATION_METHOD -
Method Summary
Modifier and TypeMethodDescriptionvoidinitialize(CmsObject cms) Initializes the context for the renderer.voidinitialize(CmsJsonHandlerContext context) Initializes the context for the renderer.render(CmsXmlContent content, Locale locale) Converts the XML content for a single locale to a JSON objectMethods inherited from interface org.opencms.configuration.I_CmsConfigurationParameterHandler
addConfigurationParameter, getConfiguration, initConfiguration
-
Method Details
-
initialize
Initializes the context for the renderer.- Parameters:
context- the context to set- Throws:
CmsException- if something goes wrong
-
initialize
Initializes the context for the renderer.- Parameters:
cms- the CMS object to set- Throws:
CmsException- if something goes wrong
-
render
Converts the XML content for a single locale to a JSON object- Parameters:
content- the contentlocale- the locale- Returns:
- the JSON object
- Throws:
JSONException- if something goes wrong
-