public class LinkParserHelper extends Object implements com.atlassian.renderer.v2.components.WikiContentHandler
It maintains a list of currently extracted links while the content is being parsed.
This class should be instantiated each time it is needed. See ConfluenceLinkResolver
.
Constructor and Description |
---|
LinkParserHelper(String pageContent,
com.atlassian.renderer.v2.macro.MacroManager macroManager,
SettingsManager settingsManager) |
Modifier and Type | Method and Description |
---|---|
List<String> |
extractLinks() |
void |
handleMacro(StringBuffer buffer,
com.atlassian.renderer.v2.components.MacroTag macroTag,
String body) |
void |
handleText(StringBuffer buffer,
String s) |
public LinkParserHelper(String pageContent, com.atlassian.renderer.v2.macro.MacroManager macroManager, SettingsManager settingsManager)
public void handleMacro(StringBuffer buffer, com.atlassian.renderer.v2.components.MacroTag macroTag, String body)
handleMacro
in interface com.atlassian.renderer.v2.components.WikiContentHandler
public void handleText(StringBuffer buffer, String s)
handleText
in interface com.atlassian.renderer.v2.components.WikiContentHandler
Copyright © 2003–2017 Atlassian. All rights reserved.