public class

DefaultLinkRenderer

extends Object
implements LinkRenderer
java.lang.Object
   ↳ com.atlassian.confluence.content.render.xhtml.DefaultLinkRenderer

Summary

Public Constructors
DefaultLinkRenderer(Marshaller<Link> linkMarshaller)
Public Methods
String render(ContentEntityObject content, String linkAlias, ConversionContext conversionContext)
Renders link to specified content with specified alias.
String render(ContentEntityObject content, ConversionContext conversionContext)
Renders link to specified content using the display name of the content as the link body.
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.atlassian.confluence.content.render.xhtml.LinkRenderer

Public Constructors

public DefaultLinkRenderer (Marshaller<Link> linkMarshaller)

Public Methods

public String render (ContentEntityObject content, String linkAlias, ConversionContext conversionContext)

Renders link to specified content with specified alias.

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.

public String render (ContentEntityObject content, ConversionContext conversionContext)

Renders link to specified content using the display name of the content as the link body.

Parameters
content the content
conversionContext conversion context
Returns
  • link to specified content in storage format.