Class 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 ']'
      • Fields inherited from class org.radeox.filter.regex.RegexFilter

        MULTILINE, pattern, SINGLELINE, substitute
      • Fields inherited from class org.radeox.filter.FilterSupport

        initialContext
    • 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 class org.radeox.filter.regex.RegexTokenFilter
      • getLinkType

        protected int getLinkType()
      • filter

        public String filter​(String pattern,
                             org.radeox.filter.context.FilterContext context)
        Specified by:
        filter in interface org.radeox.filter.Filter
        Overrides:
        filter in class org.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 class org.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)