com.atlassian.confluence.importexport.impl
Class HtmlExporter

java.lang.Object
  extended by com.atlassian.confluence.importexport.Exporter
      extended by com.atlassian.confluence.importexport.impl.AbstractExporterImpl
          extended by com.atlassian.confluence.importexport.impl.AbstractRendererExporterImpl
              extended by com.atlassian.confluence.importexport.impl.HtmlExporter

public class HtmlExporter
extends AbstractRendererExporterImpl


Nested Class Summary
 
Nested classes/interfaces inherited from class com.atlassian.confluence.importexport.impl.AbstractRendererExporterImpl
AbstractRendererExporterImpl.ContentConverter
 
Field Summary
 
Fields inherited from class com.atlassian.confluence.importexport.Exporter
context
 
Constructor Summary
HtmlExporter()
           
 
Method Summary
 String doExport(com.atlassian.core.util.ProgressMeter progress)
          Exports the content specified by the configured ExportContext.
protected  void doExportEntity(ConfluenceEntityObject entity, String exportPath)
           
protected  void exportPage(Page page, String baseExportPath)
          Export page exports either a single page or, if context.exportChildren is set, the whole page hierarchy.
protected  void exportSpace(Space space, String baseExportPath)
           
protected  ExportLinkFormatter getExportLinkFormatter()
          Returns the ExportLinkFormatter for the exporter.
protected  String getFullExportPath(String baseExportPath, ConfluenceEntityObject entity)
          This implementation should be extracted to a specific ExportFileNameGenerator implementation.
protected  ImageProcessingRule getImageProcessingRule(String exportDir)
          Returns a new ImageProcessingRule for each export.
 
Methods inherited from class com.atlassian.confluence.importexport.impl.AbstractRendererExporterImpl
createTemplateSupport, ensurePathExists, exportImages, exportResource, getTransformerFactory, getWorkingExportContext, setDownloadResourceManager, setFormatSettingsManager, setLocaleManager, setSettingsManager, setThemeManager, setTransformerFactory, setUserAccessor, setXhtmlRenderer
 
Methods inherited from class com.atlassian.confluence.importexport.impl.AbstractExporterImpl
checkHaveSomethingToExport, createAndSetExportDirectory, createExportDirectory, ensureDirectoryCreated, getSpaceKeyForExportFileName, prepareExportFileName, setExportFileNameGenerator
 
Methods inherited from class com.atlassian.confluence.importexport.Exporter
getContext, setContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HtmlExporter

public HtmlExporter()
Method Detail

doExport

public String doExport(com.atlassian.core.util.ProgressMeter progress)
                throws ImportExportException
Description copied from class: Exporter
Exports the content specified by the configured ExportContext.

Overrides:
doExport in class AbstractRendererExporterImpl
Parameters:
progress - the meter to update with progress during the export.
Returns:
the path to the exported content.
Throws:
ImportExportException - if it fails for any reason.

exportPage

protected void exportPage(Page page,
                          String baseExportPath)
                   throws ImportExportException
Export page exports either a single page or, if context.exportChildren is set, the whole page hierarchy.

Overrides:
exportPage in class AbstractRendererExporterImpl
Throws:
ImportExportException

exportSpace

protected void exportSpace(Space space,
                           String baseExportPath)
                    throws ImportExportException
Overrides:
exportSpace in class AbstractRendererExporterImpl
Throws:
ImportExportException

getImageProcessingRule

protected ImageProcessingRule getImageProcessingRule(String exportDir)
Description copied from class: AbstractRendererExporterImpl
Returns a new ImageProcessingRule for each export.

Specified by:
getImageProcessingRule in class AbstractRendererExporterImpl

getExportLinkFormatter

protected ExportLinkFormatter getExportLinkFormatter()
Description copied from class: AbstractRendererExporterImpl
Returns the ExportLinkFormatter for the exporter.

Specified by:
getExportLinkFormatter in class AbstractRendererExporterImpl

getFullExportPath

protected String getFullExportPath(String baseExportPath,
                                   ConfluenceEntityObject entity)
                            throws ImportExportException
This implementation should be extracted to a specific ExportFileNameGenerator implementation. However this code is up for refactoring (probably making a plugin) soon so leave it for the moment.

Specified by:
getFullExportPath in class AbstractRendererExporterImpl
Throws:
ImportExportException

doExportEntity

protected void doExportEntity(ConfluenceEntityObject entity,
                              String exportPath)
                       throws ImportExportException
Specified by:
doExportEntity in class AbstractRendererExporterImpl
Throws:
ImportExportException


Copyright © 2003-2012 Atlassian. All Rights Reserved.