|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.xpn.xwiki.export.html.HtmlPackager
public class HtmlPackager
Create a ZIP package containing a range of HTML pages with skin and attachment dependencies.
Constructor Summary | |
---|---|
HtmlPackager()
|
Method Summary | |
---|---|
void |
addPage(String page)
Add a page to export. |
void |
addPages(Collection<String> pages)
Add a range of pages to export. |
void |
export(XWikiContext context)
Apply export and create the ZIP package. |
String |
getDescription()
|
String |
getName()
|
void |
setDescription(String description)
Modify the description of the package. |
void |
setName(String name)
Modify the name of the package for which packager append ".zip". |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public HtmlPackager()
Method Detail |
---|
public void setName(String name)
name
- the name of the page.public String getName()
public void setDescription(String description)
description
- the description of the package.public String getDescription()
public void addPage(String page)
page
- the name of the page to export.public void addPages(Collection<String> pages)
pages
- a range of pages to export.public void export(XWikiContext context) throws IOException, XWikiException
context
- the XWiki context used to render pages.
IOException
- error when creating the package.
XWikiException
- error when render the pages.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |