public class HtmlExportHrefEvaluator extends Object implements HrefEvaluator
Constructor and Description |
---|
HtmlExportHrefEvaluator(HrefEvaluator defaultHrefEvaluator,
HrefEvaluator absoluteHrefEvaluator) |
Modifier and Type | Method and Description |
---|---|
String |
createHref(ConversionContext context,
Attachment attachment,
String anchor) |
String |
createHref(ConversionContext context,
Object entity,
String anchor)
Attachments and Pages may well exist in the export so look for them as a special case.
|
String |
createHref(ConversionContext context,
Page page,
String anchor) |
String |
createHref(ConversionContext context,
WebLink link,
String anchor) |
public HtmlExportHrefEvaluator(HrefEvaluator defaultHrefEvaluator, HrefEvaluator absoluteHrefEvaluator)
public String createHref(ConversionContext context, Object entity, String anchor)
Note that while comment may also exist in the export, Confluence does not have a comment link type so there is no handling for comments. If this changes in the future then we need to add additional handling here.
createHref
in interface HrefEvaluator
context
- the ConversionContext providing information about the conversion being performed, including the
target output type e.g. display, pdfentity
- the objectanchor
- an option parameter specifying an anchor component for the href attribute. This may be null if
there is no destination anchor.ConversionContextOutputType} for the supported outputType
public String createHref(ConversionContext context, Page page, String anchor)
public String createHref(ConversionContext context, Attachment attachment, String anchor)
public String createHref(ConversionContext context, WebLink link, String anchor)
Copyright © 2003–2020 Atlassian. All rights reserved.