Class CmsXmlPageConverter


  • @Deprecated
    public final class CmsXmlPageConverter
    extends java.lang.Object
    Deprecated.
    no longer in use
    Converts legacy pages (OpenCms 5 and earlier) to XML pages (OpenCms 6).

    Since:
    6.0.0
    • Method Summary

      All Methods Static Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      static CmsXmlPage convertToXmlPage​(CmsObject cms, byte[] content, java.util.Locale locale, java.lang.String encoding)
      Deprecated.
      Converts the contents of a page into an xml page.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • convertToXmlPage

        public static CmsXmlPage convertToXmlPage​(CmsObject cms,
                                                  byte[] content,
                                                  java.util.Locale locale,
                                                  java.lang.String encoding)
                                           throws CmsImportExportException,
                                                  CmsXmlException
        Deprecated.
        Converts the contents of a page into an xml page.

        Parameters:
        cms - the cms object
        content - the content used with xml templates
        locale - the locale of the body element(s)
        encoding - the encoding to the xml page
        Returns:
        the xml page content or null if conversion failed
        Throws:
        CmsImportExportException - if the body content or the XMLTEMPLATE element were not found
        CmsXmlException - if there is an error reading xml contents from the byte array into a document