Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for createPathMatcher (0.04 sec)

  1. src/test/java/org/codelibs/fess/helper/PathMappingHelperTest.java

            final Pattern pattern = Pattern.compile("test");
            final Matcher matcher = pattern.matcher("test");
            final BiFunction<String, Matcher, String> pathMatcher = pathMappingHelper.createPathMatcher(matcher, "function:encodeUrl");
    
            String result = pathMatcher.apply("http://example.com/test path", matcher);
            assertEquals("http://example.com/test+path", result);
        }
    
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Sat Jul 12 05:35:01 UTC 2025
    - 14.9K bytes
    - Viewed (0)
  2. src/main/java/org/codelibs/fess/opensearch/config/exentity/PathMapping.java

                if (pathMapperFunc == null) {
                    final String replacement = StringUtil.isNotBlank(getReplacement()) ? getReplacement() : StringUtil.EMPTY;
                    pathMapperFunc = pathMappingHelper.createPathMatcher(matcher, replacement);
                }
                try {
                    return pathMapperFunc.apply(input, matcher);
                } catch (final Exception e) {
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Sat Mar 15 06:53:53 UTC 2025
    - 3.3K bytes
    - Viewed (0)
  3. src/main/java/org/codelibs/fess/helper/PathMappingHelper.java

         *
         * @param matcher the regex matcher
         * @param replacement the replacement string
         * @return the path matcher function
         */
        public BiFunction<String, Matcher, String> createPathMatcher(final Matcher matcher, final String replacement) { // for PathMapping
            if (FUNCTION_ENCODEURL_MATCHER.equals(replacement)) {
                return (u, m) -> DocumentUtil.encodeUrl(u);
            }
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Jul 17 08:28:31 UTC 2025
    - 9.5K bytes
    - Viewed (0)
Back to top