com.atlassian.renderer.v2.components
Class UrlRendererComponent

java.lang.Object
  extended by com.atlassian.renderer.v2.components.AbstractRendererComponent
      extended by com.atlassian.renderer.v2.components.AbstractRegexRendererComponent
          extended by com.atlassian.renderer.v2.components.UrlRendererComponent
All Implemented Interfaces:
RendererComponent

public class UrlRendererComponent
extends AbstractRegexRendererComponent


Field Summary
static char[] INVALID_END_CHARS
           
static String PURE_URL_PATTERN
           
static Pattern URL_PATTERN
           
 
Constructor Summary
UrlRendererComponent(LinkResolver linkResolver)
           
 
Method Summary
 void appendSubstitution(StringBuffer buffer, RenderContext context, Matcher matcher)
          Implement this method to perform your actual regex substitution.
 String handleUrlLink(Link link, RenderContext renderContext, String url)
           
 String render(String wiki, RenderContext context)
          Render this piece of wiki text.
 boolean shouldRender(RenderMode renderMode)
          Whether or not this render component is required given the current render mode.
 
Methods inherited from class com.atlassian.renderer.v2.components.AbstractRegexRendererComponent
regexRender
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

URL_PATTERN

public static Pattern URL_PATTERN

PURE_URL_PATTERN

public static String PURE_URL_PATTERN

INVALID_END_CHARS

public static final char[] INVALID_END_CHARS
Constructor Detail

UrlRendererComponent

public UrlRendererComponent(LinkResolver linkResolver)
Method Detail

shouldRender

public boolean shouldRender(RenderMode renderMode)
Description copied from interface: RendererComponent
Whether or not this render component is required given the current render mode.

Specified by:
shouldRender in interface RendererComponent
Specified by:
shouldRender in class AbstractRegexRendererComponent

render

public String render(String wiki,
                     RenderContext context)
Description copied from interface: RendererComponent
Render this piece of wiki text.

Specified by:
render in interface RendererComponent
Specified by:
render in class AbstractRegexRendererComponent

appendSubstitution

public void appendSubstitution(StringBuffer buffer,
                               RenderContext context,
                               Matcher matcher)
Description copied from class: AbstractRegexRendererComponent
Implement this method to perform your actual regex substitution.

Specified by:
appendSubstitution in class AbstractRegexRendererComponent

handleUrlLink

public String handleUrlLink(Link link,
                            RenderContext renderContext,
                            String url)


Copyright © 2009 Atlassian Pty Ltd. All Rights Reserved.