Class CmsJsonDocumentEmbeddedXmlContent
java.lang.Object
org.opencms.xml.xml2json.document.A_CmsJsonDocument
org.opencms.xml.xml2json.document.CmsJsonDocumentResource
org.opencms.xml.xml2json.document.CmsJsonDocumentXmlContent
org.opencms.xml.xml2json.document.CmsJsonDocumentEmbeddedXmlContent
- All Implemented Interfaces:
I_CmsJsonDocument
Class representing a JSON document for an embedded XML content.
-
Field Summary
Fields inherited from class org.opencms.xml.xml2json.document.CmsJsonDocumentXmlContent
m_embedLinkedModelgroup, m_throwException, m_xmlContent
Fields inherited from class org.opencms.xml.xml2json.document.CmsJsonDocumentResource
m_helper, m_resource
Fields inherited from class org.opencms.xml.xml2json.document.A_CmsJsonDocument
FIELD_LINKED_CONTENTS, m_context, m_json, m_jsonRequest
-
Constructor Summary
ConstructorDescriptionCmsJsonDocumentEmbeddedXmlContent
(CmsJsonRequest jsonRequest, CmsXmlContent xmlContent) Creates a new JSON document. -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
Whether to show the wrapper with resource information.Methods inherited from class org.opencms.xml.xml2json.document.CmsJsonDocumentXmlContent
getJson, insertJsonLinkedContent, insertJsonLinkedContents, insertJsonWrapper, isLocaleAllRequest, isLocalePathRequest, isLocaleRequest, isShowFallbackLocaleRequest, isShowLinkedContentsRequest
Methods inherited from class org.opencms.xml.xml2json.document.CmsJsonDocumentResource
insertJsonResource, insertJsonResourceAttributes, insertJsonResourceFile, insertJsonResourceParams, insertJsonResourcePathAndLink, insertJsonResourceProperties
-
Constructor Details
-
CmsJsonDocumentEmbeddedXmlContent
public CmsJsonDocumentEmbeddedXmlContent(CmsJsonRequest jsonRequest, CmsXmlContent xmlContent) throws Exception Creates a new JSON document.- Parameters:
jsonRequest
- the JSON requestxmlContent
- the XML content- Throws:
Exception
- if something goes wrong
-
-
Method Details
-
isShowWrapperRequest
Description copied from class:CmsJsonDocumentXmlContent
Whether to show the wrapper with resource information. For backward compatibility the wrapper is shown for the all locale request but not for the locale and locale path request as a default. This default behavior can be changed by means of the "wrapper" request parameter. For locale path requests, wrapper information is not available.- Overrides:
isShowWrapperRequest
in classCmsJsonDocumentXmlContent
- Returns:
- whether to show the wrapper or not
- See Also:
-