com.atlassian.confluence.content.render.xhtml
Class DefaultLinkRenderer

java.lang.Object
  extended by com.atlassian.confluence.content.render.xhtml.DefaultLinkRenderer
All Implemented Interfaces:
LinkRenderer

public class DefaultLinkRenderer
extends Object
implements LinkRenderer


Constructor Summary
DefaultLinkRenderer(Marshaller<Link> linkMarshaller)
           
 
Method Summary
 String render(ContentEntityObject content, ConversionContext conversionContext)
          Renders link to specified content using the display name of the content as the link body.
 String render(ContentEntityObject content, String linkAlias, ConversionContext conversionContext)
          Renders link to specified content with specified alias.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultLinkRenderer

public DefaultLinkRenderer(Marshaller<Link> linkMarshaller)
Method Detail

render

public String render(ContentEntityObject content,
                     ConversionContext conversionContext)
              throws XhtmlException
Description copied from interface: LinkRenderer
Renders link to specified content using the display name of the content as the link body.

Specified by:
render in interface LinkRenderer
Parameters:
content - the content
conversionContext - conversion context
Returns:
link to specified content in storage format.
Throws:
XhtmlException - if there is an error rendering the link

render

public String render(ContentEntityObject content,
                     String linkAlias,
                     ConversionContext conversionContext)
              throws XhtmlException
Description copied from interface: LinkRenderer
Renders link to specified content with specified alias.

Specified by:
render in interface LinkRenderer
Parameters:
content - the content
linkAlias - body or alias of resulting link. Note that this will be HTML encoded on output.
conversionContext - conversion context
Returns:
link to specified content in storage format.
Throws:
XhtmlException - if there is an error rendering the link


Copyright © 2003–2015 Atlassian. All rights reserved.