Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 27 for crawlerContainer (0.12 sec)

  1. fess-crawler/src/main/java/org/codelibs/fess/crawler/container/CrawlerContainer.java

     * governing permissions and limitations under the License.
     */
    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)
  2. fess-crawler/src/main/java/org/codelibs/fess/crawler/rule/impl/AbstractRule.java

        protected String ruleId;
    
        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;
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Thu Feb 22 01:47:32 UTC 2024
    - 1.8K bytes
    - Viewed (0)
  3. fess-crawler/src/main/java/org/codelibs/fess/crawler/processor/impl/SitemapsResponseProcessor.java

    /**
     * @author shinsuke
     *
     */
    public class SitemapsResponseProcessor implements ResponseProcessor {
        @Resource
        protected CrawlerContainer crawlerContainer;
    
        @Override
        public void process(final ResponseData responseData) {
            final SitemapsHelper sitemapsHelper = crawlerContainer.getComponent("sitemapsHelper");
            try (final InputStream responseBody = responseData.getResponseBody()) {
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Thu Feb 22 01:47:32 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  4. fess-crawler/src/main/java/org/codelibs/fess/crawler/client/CrawlerClientCreator.java

    import java.util.Map;
    
    import org.codelibs.fess.crawler.container.CrawlerContainer;
    import org.slf4j.Logger;
    import org.slf4j.LoggerFactory;
    
    import jakarta.annotation.Resource;
    
    public class CrawlerClientCreator {
    
        private static final Logger logger = LoggerFactory.getLogger(CrawlerClientCreator.class);
    
        @Resource
        protected CrawlerContainer crawlerContainer;
    
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Thu Feb 22 01:47:32 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  5. fess-crawler/src/main/java/org/codelibs/fess/crawler/extractor/impl/AbstractExtractor.java

    public abstract class AbstractExtractor implements Extractor {
    
        @Resource
        protected CrawlerContainer crawlerContainer;
    
        public void register(final List<String> keyList) {
            getExtractorFactory().addExtractor(keyList, this);
        }
    
        protected MimeTypeHelper getMimeTypeHelper() {
            final MimeTypeHelper mimeTypeHelper = crawlerContainer.getComponent("mimeTypeHelper");
            if (mimeTypeHelper == null) {
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Thu Feb 22 01:47:32 UTC 2024
    - 1.9K bytes
    - Viewed (0)
  6. fess-crawler/src/main/java/org/codelibs/fess/crawler/extractor/ExtractorBuilder.java

        private final Map<String, String> params;
    
        private final CrawlerContainer crawlerContainer;
    
        private String mimeType;
    
        private String filename;
    
        private int cacheFileSize = 1_000_000;
    
        private String extractorName = "tikaExtractor";
    
        private long maxContentLength = -1;
    
        protected ExtractorBuilder(final CrawlerContainer crawlerContainer, final InputStream in, final Map<String, String> params) {
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Sat Oct 12 01:40:57 UTC 2024
    - 6.3K bytes
    - Viewed (0)
  7. fess-crawler/src/main/java/org/codelibs/fess/crawler/pool/CrawlerPooledObjectFactory.java

    import org.codelibs.fess.crawler.container.CrawlerContainer;
    
    import jakarta.annotation.Resource;
    
    /**
     *
     * @param <T> Pooled object
     *
     * @author shinsuke
     */
    public class CrawlerPooledObjectFactory<T> extends BasePooledObjectFactory<T> {
        @Resource
        protected CrawlerContainer crawlerContainer;
    
        protected String componentName;
    
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Thu Feb 22 01:47:32 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  8. fess-crawler/src/main/java/org/codelibs/fess/crawler/transformer/impl/HtmlTransformer.java

        private static final Logger logger = LoggerFactory.getLogger(HtmlTransformer.class);
    
        protected static final String LOCATION_HEADER = "Location";
    
        @Resource
        protected CrawlerContainer crawlerContainer;
    
        protected Map<String, String> featureMap = new HashMap<>();
    
        protected Map<String, String> propertyMap = new HashMap<>();
    
        protected Map<String, String> childUrlRuleMap = new LinkedHashMap<>();
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Thu Oct 24 12:16:00 UTC 2024
    - 19.4K bytes
    - Viewed (0)
  9. fess-crawler/src/main/java/org/codelibs/fess/crawler/extractor/ExtractorFactory.java

    public class ExtractorFactory {
    
        private static final Logger logger = LoggerFactory.getLogger(ExtractorFactory.class);
    
        @Resource
        protected CrawlerContainer crawlerContainer;
    
        protected Map<String, Extractor> extractorMap = new HashMap<>();
    
        public void addExtractor(final String key, final Extractor extractor) {
            if (StringUtil.isBlank(key)) {
                throw new CrawlerSystemException("The key is null.");
            }
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Tue Jun 18 05:49:57 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  10. fess-crawler/src/main/java/org/codelibs/fess/crawler/processor/impl/DefaultResponseProcessor.java

     *
     */
    public class DefaultResponseProcessor implements ResponseProcessor {
        private static final Logger logger = LoggerFactory.getLogger(DefaultResponseProcessor.class);
    
        @Resource
        protected CrawlerContainer crawlerContainer;
    
        protected Transformer transformer;
    
        protected int[] successfulHttpCodes;
    
        protected int[] notModifiedHttpCodes;
    
        @Override
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Thu Feb 22 01:47:32 UTC 2024
    - 9K bytes
    - Viewed (0)
Back to top