Class DefaultHrefEvaluator
- java.lang.Object
-
- com.atlassian.confluence.content.render.xhtml.links.DefaultHrefEvaluator
-
- All Implemented Interfaces:
HrefEvaluator
public class DefaultHrefEvaluator extends Object implements HrefEvaluator
An HrefEvaluator which knows how to generate href values forConversionContextOutputType.DISPLAY
and generates relative links for the browser.
-
-
Constructor Summary
Constructors Constructor Description DefaultHrefEvaluator(ContextPathHolder contextPathHolder, PermissionManager permissionManager)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
createHref(ConversionContext context, Object destination, String anchor)
Create the appropriate href attribute value for the supplied ConversionContext.
-
-
-
Constructor Detail
-
DefaultHrefEvaluator
public DefaultHrefEvaluator(ContextPathHolder contextPathHolder, PermissionManager permissionManager)
- Since:
- 5.7.4
-
-
Method Detail
-
createHref
public String createHref(ConversionContext context, Object destination, String anchor)
Description copied from interface:HrefEvaluator
Create the appropriate href attribute value for the supplied ConversionContext.- Specified by:
createHref
in interfaceHrefEvaluator
- Parameters:
context
- the ConversionContext providing information about the conversion being performed, including the target output type e.g. display, pdfdestination
- the objectanchor
- an option parameter specifying an anchor component for the href attribute. This may be null if there is no destination anchor.- Returns:
- the attribute value appropriate for the outputType specified.
-
-