public class UrlRendererComponent extends AbstractNoTokenRegexRendererComponent
| Modifier and Type | Field and Description |
|---|---|
static char[] |
INVALID_END_CHARS
Deprecated.
since 7.1 - This field was not encapsulated to guard it against
inappropriate manipulation by external code. It is no longer used.
|
static String |
PURE_URL_PATTERN
Deprecated.
since 7.1 - This field was not encapsulated to guard it against
inappropriate manipulation by external code. It is no longer used.
|
static Pattern |
URL_PATTERN
Deprecated.
since 7.1 - This field was not encapsulated to guard it against
inappropriate manipulation by external code. It is no longer used.
|
| Constructor and Description |
|---|
UrlRendererComponent(LinkResolver linkResolver) |
| Modifier and Type | Method and Description |
|---|---|
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.
|
regexRender@Deprecated public static Pattern URL_PATTERN
@Deprecated public static String PURE_URL_PATTERN
@Deprecated public static final char[] INVALID_END_CHARS
public UrlRendererComponent(LinkResolver linkResolver)
public boolean shouldRender(RenderMode renderMode)
RendererComponentshouldRender in interface RendererComponentshouldRender in class AbstractRegexRendererComponentpublic String render(String wiki, RenderContext context)
RendererComponentrender in interface RendererComponentrender in class AbstractRegexRendererComponentpublic void appendSubstitution(StringBuffer buffer, RenderContext context, Matcher matcher)
AbstractRegexRendererComponentappendSubstitution in class AbstractRegexRendererComponentpublic String handleUrlLink(Link link, RenderContext renderContext, String url)
Copyright © 2019 Atlassian. All rights reserved.