com.atlassian.confluence.links
Class LinkParserHelper

java.lang.Object
  extended by com.atlassian.confluence.links.LinkParserHelper
All Implemented Interfaces:
com.atlassian.renderer.v2.components.WikiContentHandler

public class LinkParserHelper
extends Object
implements com.atlassian.renderer.v2.components.WikiContentHandler

This is a helper class to extract links. 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 Summary
LinkParserHelper(String pageContent, com.atlassian.renderer.v2.macro.MacroManager macroManager, SettingsManager settingsManager)
           
 
Method Summary
 List<String> extractLinks()
           
 void handleMacro(StringBuffer buffer, com.atlassian.renderer.v2.components.MacroTag macroTag, String body)
           
 void handleText(StringBuffer buffer, String s)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LinkParserHelper

public LinkParserHelper(String pageContent,
                        com.atlassian.renderer.v2.macro.MacroManager macroManager,
                        SettingsManager settingsManager)
Method Detail

handleMacro

public void handleMacro(StringBuffer buffer,
                        com.atlassian.renderer.v2.components.MacroTag macroTag,
                        String body)
Specified by:
handleMacro in interface com.atlassian.renderer.v2.components.WikiContentHandler

handleText

public void handleText(StringBuffer buffer,
                       String s)
Specified by:
handleText in interface com.atlassian.renderer.v2.components.WikiContentHandler

extractLinks

public List<String> extractLinks()


Copyright © 2003–2015 Atlassian. All rights reserved.