Class LinkTestFilter
- java.lang.Object
-
- org.radeox.filter.FilterSupport
-
- org.radeox.filter.regex.RegexFilter
-
- org.radeox.filter.regex.RegexTokenFilter
-
- com.atlassian.confluence.renderer.radeox.filters.LinkTestFilter
-
- All Implemented Interfaces:
org.radeox.filter.Filter
public class LinkTestFilter extends org.radeox.filter.regex.RegexTokenFilter
-
-
Field Summary
Fields Modifier and Type Field Description static String
PATTERN
The following pattern can be broken down as follows: (\\[) == literal '[' [\\p{L}&[^\[\\]\\p{Space}]] == a single character but not ' ', '[' or ']' [\\p{L}&[^\[\\]]]* == zero or more instances of characters that are not '[' or ']' \\] == literal ']'
-
Constructor Summary
Constructors Modifier Constructor Description LinkTestFilter()
protected
LinkTestFilter(String pattern, int active_grp_no)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
appendUnresolvedLink(StringBuffer buffer, com.atlassian.renderer.links.Link link)
String
filter(String pattern, org.radeox.filter.context.FilterContext context)
protected int
getLinkType()
void
handleMatch(StringBuffer buffer, org.radeox.regex.MatchResult result, org.radeox.filter.context.FilterContext context)
void
setLinkResolver(com.atlassian.renderer.links.LinkResolver linkResolver)
protected void
setUp(org.radeox.filter.context.FilterContext context)
-
-
-
Field Detail
-
PATTERN
public static final String PATTERN
The following pattern can be broken down as follows: (\\[) == literal '[' [\\p{L}&[^\[\\]\\p{Space}]] == a single character but not ' ', '[' or ']' [\\p{L}&[^\[\\]]]* == zero or more instances of characters that are not '[' or ']' \\] == literal ']'- See Also:
- Constant Field Values
-
-
Constructor Detail
-
LinkTestFilter
public LinkTestFilter()
-
LinkTestFilter
protected LinkTestFilter(String pattern, int active_grp_no)
-
-
Method Detail
-
setUp
protected void setUp(org.radeox.filter.context.FilterContext context)
- Overrides:
setUp
in classorg.radeox.filter.regex.RegexTokenFilter
-
getLinkType
protected int getLinkType()
-
filter
public String filter(String pattern, org.radeox.filter.context.FilterContext context)
- Specified by:
filter
in interfaceorg.radeox.filter.Filter
- Overrides:
filter
in classorg.radeox.filter.regex.RegexTokenFilter
-
handleMatch
public void handleMatch(StringBuffer buffer, org.radeox.regex.MatchResult result, org.radeox.filter.context.FilterContext context)
- Specified by:
handleMatch
in classorg.radeox.filter.regex.RegexTokenFilter
-
appendUnresolvedLink
protected void appendUnresolvedLink(StringBuffer buffer, com.atlassian.renderer.links.Link link)
-
setLinkResolver
public void setLinkResolver(com.atlassian.renderer.links.LinkResolver linkResolver)
-
-