com.atlassian.confluence.content.render.xhtml.links
Class DefaultHrefEvaluator

java.lang.Object
  extended by 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 for ConversionContextOutputType.DISPLAY and generates relative links for the browser.


Constructor Summary
DefaultHrefEvaluator(ContextPathHolder contextPathHolder)
          Deprecated. since 5.7.4
DefaultHrefEvaluator(ContextPathHolder contextPathHolder, PermissionManager permissionManager)
           
 
Method Summary
 String createHref(ConversionContext context, Object destination, String anchor)
          Create the appropriate href attribute value for the supplied ConversionContext.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultHrefEvaluator

@Deprecated
public DefaultHrefEvaluator(ContextPathHolder contextPathHolder)
Deprecated. since 5.7.4


DefaultHrefEvaluator

public DefaultHrefEvaluator(ContextPathHolder contextPathHolder,
                            PermissionManager permissionManager)
Parameters:
contextPathHolder -
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 interface HrefEvaluator
Parameters:
context - the ConversionContext providing information about the conversion being performed, including the target output type e.g. display, pdf
destination - the object
anchor - 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.
See Also:
ConversionContextOutputType} for the supported outputType


Copyright © 2003–2015 Atlassian. All rights reserved.