Interface I_CmsJsonRendererXmlContent
-
- All Superinterfaces:
I_CmsConfigurationParameterHandler
- All Known Implementing Classes:
CmsJsonRendererXmlContent
public interface I_CmsJsonRendererXmlContent extends I_CmsConfigurationParameterHandler
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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
initialize(CmsObject cms)
Initializes the context for the renderer.void
initialize(CmsJsonHandlerContext context)
Initializes the context for the renderer.java.lang.Object
render(CmsXmlContent content, java.util.Locale locale)
Converts the XML content for a single locale to a JSON object-
Methods inherited from interface org.opencms.configuration.I_CmsConfigurationParameterHandler
addConfigurationParameter, getConfiguration, initConfiguration
-
-
-
-
Method Detail
-
initialize
void initialize(CmsJsonHandlerContext context) throws CmsException
Initializes the context for the renderer.- Parameters:
context
- the context to set- Throws:
CmsException
- if something goes wrong
-
initialize
void initialize(CmsObject cms) throws CmsException
Initializes the context for the renderer.- Parameters:
cms
- the CMS object to set- Throws:
CmsException
- if something goes wrong
-
render
java.lang.Object render(CmsXmlContent content, java.util.Locale locale) throws JSONException
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
-
-