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_xmlContentFields inherited from class org.opencms.xml.xml2json.document.CmsJsonDocumentResource
m_helper, m_resourceFields inherited from class org.opencms.xml.xml2json.document.A_CmsJsonDocument
FIELD_LINKED_CONTENTS, m_context, m_json, m_jsonRequest -
Constructor Summary
ConstructorsConstructorDescriptionCmsJsonDocumentEmbeddedXmlContent(CmsJsonRequest jsonRequest, CmsXmlContent xmlContent) Creates a new JSON document. -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanWhether 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, isShowLinkedContentsRequestMethods 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:CmsJsonDocumentXmlContentWhether 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:
isShowWrapperRequestin classCmsJsonDocumentXmlContent- Returns:
- whether to show the wrapper or not
- See Also:
-