Class HtmlPackager


  • public class HtmlPackager
    extends Object
    Create a ZIP package containing a range of HTML pages with skin and attachment dependencies.
    Since:
    XWiki Platform 1.3M1
    Version:
    $Id: 27e1b0da3a59f5f20687712fc2ba3462047073da $
    • Constructor Detail

      • HtmlPackager

        public HtmlPackager()
    • Method Detail

      • setName

        public void setName​(String name)
        Modify the name of the package for which packager append ".zip".
        Parameters:
        name - the name of the page.
      • getName

        public String getName()
        Returns:
        the name of the package for which packager append ".zip".
      • setDescription

        public void setDescription​(String description)
        Modify the description of the package.
        Parameters:
        description - the description of the package.
      • getDescription

        public String getDescription()
        Returns:
        the description of the package.
      • addPageReference

        public void addPageReference​(DocumentReference pageReference)
        Add a page to export.
        Parameters:
        pageReference - the reference of the page to export.
        Since:
        8.4.5, 9.0
      • addPageReferences

        public void addPageReferences​(Collection<DocumentReference> pageReferences)
        Add a range of pages to export.
        Parameters:
        pageReferences - a range of page references to export.
        Since:
        8.4.5, 9.0