Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 148 for getComponent (0.15 sec)

  1. fess-crawler/src/main/java/org/codelibs/fess/crawler/rule/impl/AbstractRule.java

        protected ResponseProcessor responseProcessor;
    
        @Resource
        protected CrawlerContainer crawlerContainer;
    
        public void register(final int index) {
            final RuleManager ruleManager = crawlerContainer.getComponent("ruleManager");
            ruleManager.addRule(index, this);
        }
    
        @Override
        public String getRuleId() {
            return ruleId;
        }
    
        public void setRuleId(final String ruleId) {
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Thu Feb 22 01:47:32 UTC 2024
    - 1.8K bytes
    - Viewed (0)
  2. fess-crawler/src/main/java/org/codelibs/fess/crawler/rule/impl/SitemapsRule.java

            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;
                } catch (final Exception e) {
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Thu Feb 22 01:36:27 UTC 2024
    - 1.8K bytes
    - Viewed (0)
  3. fess-crawler/src/test/java/org/codelibs/fess/crawler/extractor/impl/EmlExtractorTest.java

                        TikaExtractor tikaExtractor = container.getComponent("tikaExtractor");
                        factory.addExtractor("application/pdf", tikaExtractor);
                    });
            emlExtractor = container.getComponent("emlExtractor");
        }
    
        public void test_getText() throws IOException {
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Thu Feb 22 01:36:27 UTC 2024
    - 4.5K bytes
    - Viewed (0)
  4. fess-crawler/src/test/java/org/codelibs/fess/crawler/helper/impl/MimeTypeHelperImplTest.java

        }
    
        public void test_getContentType_filenameFirst() throws IOException {
            final MimeTypeHelperImpl mimeTypeHelper = container.getComponent("mimeTypeHelper");
            mimeTypeHelper.useFilename = true;
            assertContentType("text/plain", "test/text1.txt", "hoge.txt");
            assertContentType("text/plain", null, "hoge.txt");
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Thu Feb 22 01:36:27 UTC 2024
    - 11.6K bytes
    - Viewed (0)
  5. src/test/java/org/codelibs/fess/mylasta/FessLastaDocTest.java

                final String className = clazz.getName();
                if (className.contains(appWebPkg) && className.endsWith(actionSuffix)) {
                    // ## Assert ##
                    markHere("exists");
                    getComponent(clazz); // expect no exception
                }
            });
            assertMarked("exists");
        }
        */
    
        // ===================================================================================
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 2.3K bytes
    - Viewed (0)
  6. src/main/java/org/codelibs/fess/es/config/exentity/RequestHeader.java

        }
    
        public WebConfig getWebConfig() {
            if (webConfig == null) {
                final WebConfigService webConfigService = ComponentUtil.getComponent(WebConfigService.class);
                try {
                    webConfig = webConfigService.getWebConfig(getWebConfigId()).get();
                } catch (final Exception e) {
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  7. fess-crawler/src/test/java/org/codelibs/fess/crawler/extractor/impl/TextExtractorTest.java

        protected void setUp() throws Exception {
            super.setUp();
            StandardCrawlerContainer container = new StandardCrawlerContainer().singleton("textExtractor", TextExtractor.class);
            textExtractor = container.getComponent("textExtractor");
        }
    
        public void test_getText() {
            final InputStream in = ResourceUtil.getResourceAsStream("extractor/test.txt");
            final String content = textExtractor.getText(in, null).getContent();
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Thu Feb 22 01:36:27 UTC 2024
    - 2K bytes
    - Viewed (0)
  8. fess-crawler/src/main/java/org/codelibs/fess/crawler/container/CrawlerContainer.java

     */
    package org.codelibs.fess.crawler.container;
    
    import org.codelibs.core.lang.StringUtil;
    
    /**
     * @author shinsuke
     *
     */
    public interface CrawlerContainer {
    
        <T> T getComponent(String name);
    
        boolean available();
    
        void destroy();
    
        default void initialize() {
            final StringBuilder buf = new StringBuilder(100);
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Thu Feb 22 01:36:27 UTC 2024
    - 1.4K bytes
    - Viewed (0)
  9. fess-crawler/src/main/java/org/codelibs/fess/crawler/container/StandardCrawlerContainer.java

        private boolean available = true;
    
        public StandardCrawlerContainer() {
            initialize();
        }
    
        @Override
        public <T> T getComponent(final String name) {
            if ("crawlerContainer".equals(name)) {
                return (T) this;
            }
    
            final ComponentDef<?> componentDef = prototypeMap.get(name);
            if (componentDef != null) {
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Sat Oct 12 01:41:37 UTC 2024
    - 7.6K bytes
    - Viewed (0)
  10. fess-crawler/src/main/java/org/codelibs/fess/crawler/transformer/impl/HtmlTransformer.java

            }
    
            final Object redirectUrlObj = responseData.getMetaDataMap().get(LOCATION_HEADER);
            if (redirectUrlObj instanceof String) {
                final UrlConvertHelper urlConvertHelper = crawlerContainer.getComponent("urlConvertHelper");
                resultData.addUrl(RequestDataBuilder.newRequestData().get().url(urlConvertHelper.convert(redirectUrlObj.toString())).build());
            }
    
            return resultData;
        }
    
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Thu Oct 24 12:16:00 UTC 2024
    - 19.4K bytes
    - Viewed (0)
Back to top