Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 14 for setInitParameterMap (0.2 sec)

  1. fess-crawler/src/test/java/org/codelibs/fess/crawler/client/ftp/FtpClientTest.java

                auth.setUsername(username);
                auth.setPassword(password);
                params.put(FtpClient.FTP_AUTHENTICATIONS_PROPERTY, new FtpAuthentication[] { auth });
                ftpClient.setInitParameterMap(params);
    
                ftpClient.doGet("ftp://localhost:" + FTP_PORT + "/");
                fail();
            } catch (final ChildUrlsException e) {
                final Set<RequestData> urlSet = e.getChildUrlList();
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Thu Feb 22 01:36:27 UTC 2024
    - 16.3K bytes
    - Viewed (0)
  2. fess-crawler/src/main/java/org/codelibs/fess/crawler/client/FaultTolerantClient.java

        protected int maxRetryCount = 5;
    
        protected long retryInterval = 500;
    
        protected RequestListener listener;
    
        @Override
        public void setInitParameterMap(final Map<String, Object> params) {
            client.setInitParameterMap(params);
        }
    
        @Override
        public ResponseData execute(final RequestData request) {
            if (listener != null) {
                listener.onRequestStart(this, request);
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Thu Feb 22 01:36:27 UTC 2024
    - 4.4K bytes
    - Viewed (0)
  3. fess-crawler/src/main/java/org/codelibs/fess/crawler/client/CrawlerClientFactory.java

                    return entry.getValue();
                }
            }
            return null;
        }
    
        public void setInitParameterMap(final Map<String, Object> params) {
            if (params != null) {
                for (final CrawlerClient client : clientMap.values()) {
                    client.setInitParameterMap(params);
                }
            }
        }
    
        public void setClientMap(final Map<Pattern, CrawlerClient> clientMap) {
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Thu Feb 22 01:47:32 UTC 2024
    - 4.7K bytes
    - Viewed (0)
  4. fess-crawler/src/test/java/org/codelibs/fess/crawler/client/CrawlerClientFactoryTest.java

                    return null;
                }
    
                @Override
                public void setInitParameterMap(final Map<String, Object> params) {
                    buf.append("value=").append(params.get("hoge"));
                }
    
            });
    
            clientFactory.setInitParameterMap(paramMap);
    
            assertEquals("value=test", buf.toString());
        }
    
        public void test_getClient_null() {
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Thu Feb 22 01:36:27 UTC 2024
    - 5.3K bytes
    - Viewed (0)
  5. fess-crawler/src/main/java/org/codelibs/fess/crawler/client/CrawlerClientFactoryWrapper.java

        }
    
        public CrawlerClientFactory getParent() {
            return factory;
        }
    
        @Override
        public void setInitParameterMap(final Map<String, Object> params) {
            this.params.putAll(params);
        }
    
        public void initParameterMap() {
            factory.setInitParameterMap(params);
        }
    
        @Override
        public void init() {
            factory.init();
        }
    
        @Override
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Thu Feb 22 01:36:27 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  6. fess-crawler/src/main/java/org/codelibs/fess/crawler/client/CrawlerClient.java

    import org.codelibs.fess.crawler.entity.RequestData;
    import org.codelibs.fess.crawler.entity.ResponseData;
    
    /**
     * @author shinsuke
     *
     */
    public interface CrawlerClient extends AutoCloseable {
    
        void setInitParameterMap(Map<String, Object> params);
    
        ResponseData execute(RequestData data);
    
        @Override
        default void close() throws Exception {
            // nothing
        }
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Thu Feb 22 01:36:27 UTC 2024
    - 1K bytes
    - Viewed (0)
  7. src/test/java/org/codelibs/fess/es/config/exentity/WebConfigTest.java

            CrawlerClientFactory crawlerClientFactory = webConfig.initializeClientFactory(() -> new CrawlerClientFactory() {
                public void setInitParameterMap(final Map<String, Object> params) {
                    initParamMapSet.set(params);
                }
            });
            assertNotNull(crawlerClientFactory);
            Map<String, Object> initParamMap = initParamMapSet.get();
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu May 09 09:48:04 UTC 2024
    - 7.6K bytes
    - Viewed (0)
  8. fess-crawler/src/main/java/org/codelibs/fess/crawler/client/AbstractCrawlerClient.java

                return (T) Boolean.valueOf(value.toString());
            }
            return (T) value;
        }
    
        @Override
        public void setInitParameterMap(final Map<String, Object> params) {
            initParamMap = params;
        }
    
        @Override
        public ResponseData execute(final RequestData request) {
            return switch (request.getMethod()) {
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Thu Feb 22 01:47:32 UTC 2024
    - 5.9K bytes
    - Viewed (0)
  9. fess-crawler/src/test/java/org/codelibs/fess/crawler/client/http/HcHttpClientTest.java

        // ExecutorService executorService = Executors.newFixedThreadPool(1);
        //
        // // HttpClient Parameters
        // Map<String, Object> paramMap = new HashMap<String, Object>();
        // httpClient.setInitParameterMap(paramMap);
        //
        // DigestScheme digestScheme = new DigestScheme();
        // List<Authentication> basicAuthList = new ArrayList<Authentication>();
        // basicAuthList.add(new AuthenticationImpl(
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Thu May 09 09:28:25 UTC 2024
    - 8.8K bytes
    - Viewed (0)
  10. src/main/java/org/codelibs/fess/es/config/exentity/FileConfig.java

            //  Parameters
            final Map<String, Object> paramMap = new HashMap<>();
            factory.setInitParameterMap(paramMap);
    
            final Map<String, String> clientConfigMap = getConfigParameterMap(ConfigName.CLIENT);
            if (clientConfigMap != null) {
                paramMap.putAll(clientConfigMap);
            }
    
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 9.8K bytes
    - Viewed (0)
Back to top