Package org.opencms.xml.xml2json.handler
Class CmsJsonHandlerList
java.lang.Object
org.opencms.xml.xml2json.handler.CmsJsonHandlerXmlContent
org.opencms.xml.xml2json.handler.CmsJsonHandlerList
- All Implemented Interfaces:
I_CmsJsonHandler
JSON handler for rendering a list.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.opencms.xml.xml2json.handler.CmsJsonHandlerXmlContent
CmsJsonHandlerXmlContent.PathNotFoundException -
Field Summary
Fields inherited from class org.opencms.xml.xml2json.handler.CmsJsonHandlerXmlContent
PARAM_LOCALE, PARAM_PATH -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondoublegetOrder()Gets the sort order for this handler.booleanmatches(CmsJsonHandlerContext context) Returns true if the handler matches the given context.renderJson(CmsJsonHandlerContext context) Renders the JSON.Methods inherited from class org.opencms.xml.xml2json.handler.CmsJsonHandlerXmlContent
empty, renderJson
-
Constructor Details
-
CmsJsonHandlerList
public CmsJsonHandlerList()
-
-
Method Details
-
getOrder
Description copied from interface:I_CmsJsonHandlerGets the sort order for this handler.Handlers are sorted by ascending order, and the first matching handler is selected.
- Specified by:
getOrderin interfaceI_CmsJsonHandler- Overrides:
getOrderin classCmsJsonHandlerXmlContent- Returns:
- the sort order
- See Also:
-
matches
Description copied from interface:I_CmsJsonHandlerReturns true if the handler matches the given context.- Specified by:
matchesin interfaceI_CmsJsonHandler- Overrides:
matchesin classCmsJsonHandlerXmlContent- Parameters:
context- the context- Returns:
- true if the handler matches
- See Also:
-
renderJson
Description copied from interface:I_CmsJsonHandlerRenders the JSON.- Specified by:
renderJsonin interfaceI_CmsJsonHandler- Overrides:
renderJsonin classCmsJsonHandlerXmlContent- Parameters:
context- the context (provides information about the path and resource)- Returns:
- the JSON result
- See Also:
-