Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 165 for Watch (0.06 sec)

  1. src/test/java/org/codelibs/fess/suggest/concurrent/DeferredTest.java

                try {
                    Thread.sleep(1000);
                } catch (InterruptedException ignore) {}
                deferred.resolve(new SuggestResponse("", 0, Collections.emptyList(), 0, null));
            });
            th.start();
    
            final CountDownLatch latch = new CountDownLatch(1);
            deferred.promise().then(response -> latch.countDown());
            assertTrue(latch.await(10, TimeUnit.SECONDS));
        }
    
        @Test
    Registered: Fri Sep 19 09:08:11 UTC 2025
    - Last Modified: Sat Mar 15 06:51:20 UTC 2025
    - 4.8K bytes
    - Viewed (0)
  2. fess-crawler/src/main/java/org/codelibs/fess/crawler/filter/impl/UrlFilterImpl.java

                } catch (final Exception e) {
                    logger.warn("Failed to add exclude_urls on " + sessionId, e);
                }
                cachedExcludeSet.clear();
            }
        }
    
        /*
         * (non-Javadoc)
         *
         * @see org.codelibs.fess.crawler.filter.UrlFilter#match(java.lang.String)
         */
        @Override
        public boolean match(final String url) {
    Registered: Sun Sep 21 03:50:09 UTC 2025
    - Last Modified: Sun Jul 06 02:13:03 UTC 2025
    - 9.2K bytes
    - Viewed (0)
  3. fess-crawler/src/main/java/org/codelibs/fess/crawler/rule/impl/SitemapsRule.java

         */
        @Override
        public boolean match(final ResponseData responseData) {
            if (super.match(responseData)) {
                try (final InputStream is = responseData.getResponseBody()) {
                    final SitemapsHelper sitemapsHelper = crawlerContainer.getComponent("sitemapsHelper");
                    return sitemapsHelper.isValid(is);
                } catch (final CrawlingAccessException e) {
                    throw e;
    Registered: Sun Sep 21 03:50:09 UTC 2025
    - Last Modified: Sun Jul 06 02:13:03 UTC 2025
    - 2.6K bytes
    - Viewed (0)
  4. src/main/java/org/codelibs/fess/suggest/concurrent/Deferred.java

                }
            }
            if (executeCallbacks.size() > 0) {
                try {
                    executeCallbacks.stream().forEach(callback -> callback.accept(response));
                } catch (final Exception ignore) {}
            }
            latch.countDown();
        }
    
        /**
         * Rejects the deferred computation with the given throwable.
         * @param t The throwable.
         */
        public void reject(final Throwable t) {
    Registered: Fri Sep 19 09:08:11 UTC 2025
    - Last Modified: Fri Jul 04 14:00:23 UTC 2025
    - 7.8K bytes
    - Viewed (0)
  5. fess-crawler/src/test/java/org/codelibs/fess/crawler/client/http/HcHttpClientTest.java

                assertTrue(crawlerContext.getRobotsTxtUrlSet().contains("http://localhost:7070/robots.txt"));
                assertFalse(urlFilter.match("http://localhost:7070/admin/"));
                assertFalse(urlFilter.match("http://localhost:7070/websvn/"));
            } finally {
                server.stop();
            }
        }
    
        public void test_processRobotsTxt_disabled() {
    Registered: Sun Sep 21 03:50:09 UTC 2025
    - Last Modified: Sat Sep 06 04:15:37 UTC 2025
    - 11.7K bytes
    - Viewed (0)
  6. fess-crawler/src/test/java/org/codelibs/fess/crawler/rule/RuleTest.java

            responseData.setUrl("http://example.com");
    
            assertTrue(rule.match(responseData));
            assertTrue(rule.match(responseData));
            assertTrue(rule.match(responseData));
            assertEquals(3, rule.getMatchCallCount());
        }
    
        /**
         * Test Rule with always false match
         */
        public void test_ruleNeverMatch() {
    Registered: Sun Sep 21 03:50:09 UTC 2025
    - Last Modified: Wed Sep 03 14:42:53 UTC 2025
    - 22.7K bytes
    - Viewed (0)
  7. fess-crawler/src/main/java/org/codelibs/fess/crawler/client/CrawlerClientFactory.java

                    creator.register(this);
                }
            } catch (final Exception e) {
                if (logger.isDebugEnabled()) {
                    logger.debug("CrawlerClientCreator is unavailable.", e);
                }
            }
        }
    
        /**
         * Adds a client with a regular expression pattern.
         * @param regex The regular expression to match URLs.
         * @param client The CrawlerClient instance.
         */
    Registered: Sun Sep 21 03:50:09 UTC 2025
    - Last Modified: Sun Jul 06 02:13:03 UTC 2025
    - 7K bytes
    - Viewed (0)
  8. fess-crawler/src/main/java/org/codelibs/fess/crawler/helper/RobotsTxtHelper.java

                return robotsTxt;
            } catch (final Exception e) {
                throw new RobotsTxtException("Failed to parse robots.txt.", e);
            }
        }
    
        /**
         * Extracts the value from a line using the given pattern.
         * @param pattern the pattern to match against
         * @param line the line to extract the value from
         * @return the extracted value, or null if no match
         */
    Registered: Sun Sep 21 03:50:09 UTC 2025
    - Last Modified: Sun Jul 06 02:13:03 UTC 2025
    - 7.7K bytes
    - Viewed (0)
  9. fess-crawler/src/test/java/org/codelibs/fess/crawler/filter/UrlFilterTest.java

            // Without any patterns, all URLs should match
            assertTrue(urlFilter.match("https://example.com/"));
            assertTrue(urlFilter.match("https://test.com/page"));
            assertTrue(urlFilter.match("ftp://files.com/document.pdf"));
            assertTrue(urlFilter.match("file:///home/user/file.txt"));
        }
    
        /**
         * Test match with complex URL patterns
         */
    Registered: Sun Sep 21 03:50:09 UTC 2025
    - Last Modified: Wed Sep 03 14:42:53 UTC 2025
    - 19K bytes
    - Viewed (0)
  10. fess-crawler/src/main/java/org/codelibs/fess/crawler/extractor/impl/PasswordBasedExtractor.java

     *   <li>Dynamic passwords provided through extraction parameters</li>
     * </ul>
     *
     * <p>Passwords are matched against URLs or resource names using regular expression patterns.
     * The extractor first tries to match against the URL, then falls back to the resource name if available.
     *
     * @author shinsuke
     */
    public abstract class PasswordBasedExtractor extends AbstractExtractor {
    
        /** Logger instance for this class. */
    Registered: Sun Sep 21 03:50:09 UTC 2025
    - Last Modified: Thu Aug 07 02:55:08 UTC 2025
    - 5.1K bytes
    - Viewed (0)
Back to top