Class HtmlImageProcessingRule
- java.lang.Object
-
- com.opensymphony.module.sitemesh.html.BasicRule
-
- com.atlassian.confluence.importexport.impl.HtmlImageProcessingRule
-
- All Implemented Interfaces:
ImageProcessingRule
,com.opensymphony.module.sitemesh.html.TagRule
public class HtmlImageProcessingRule extends com.opensymphony.module.sitemesh.html.BasicRule implements ImageProcessingRule
Processes image tags for html exports.It extracts the image tag urls and replaces them with a relative export path i.e a path relative to the temprorary export directory where the exported image is expected to be copied to.
-
-
Constructor Summary
Constructors Constructor Description HtmlImageProcessingRule()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Set<ExportImageDescriptor>
getExtractedUrls()
Gets the set ofExportImageDescriptor
representing the image tag urls that were extracted during processing.void
process(com.opensymphony.module.sitemesh.html.Tag tag)
void
setAttachmentUrlParser(AttachmentUrlParser attachmentUrlParser)
void
setSettingsManager(SettingsManager settingsManager)
-
Methods inherited from class com.opensymphony.module.sitemesh.html.BasicRule
currentBuffer, getCurrentBufferContent, setContext, shouldProcess
-
-
-
-
Method Detail
-
process
public void process(com.opensymphony.module.sitemesh.html.Tag tag)
- Specified by:
process
in interfacecom.opensymphony.module.sitemesh.html.TagRule
- Specified by:
process
in classcom.opensymphony.module.sitemesh.html.BasicRule
-
getExtractedUrls
public Set<ExportImageDescriptor> getExtractedUrls()
Description copied from interface:ImageProcessingRule
Gets the set ofExportImageDescriptor
representing the image tag urls that were extracted during processing.- Specified by:
getExtractedUrls
in interfaceImageProcessingRule
-
setSettingsManager
public void setSettingsManager(SettingsManager settingsManager)
-
setAttachmentUrlParser
public void setAttachmentUrlParser(AttachmentUrlParser attachmentUrlParser)
-
-