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 java.lang.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(java.lang.String pageContent, com.atlassian.renderer.v2.macro.MacroManager macroManager, SettingsManager settingsManager)
           
 
Method Summary
 java.util.List<java.lang.String> extractLinks()
           
 void handleMacro(java.lang.StringBuffer buffer, com.atlassian.renderer.v2.components.MacroTag macroTag, java.lang.String body)
           
 void handleText(java.lang.StringBuffer buffer, java.lang.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(java.lang.String pageContent,
                        com.atlassian.renderer.v2.macro.MacroManager macroManager,
                        SettingsManager settingsManager)
Method Detail

handleMacro

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

handleText

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

extractLinks

public java.util.List<java.lang.String> extractLinks()


Copyright © 2003-2014 Atlassian. All Rights Reserved.