Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 24 for ParamMap (0.12 sec)

  1. src/main/java/org/codelibs/fess/entity/ParamMap.java

    import java.util.function.Function;
    
    import org.apache.commons.lang3.StringUtils;
    
    import com.google.common.base.CaseFormat;
    
    public class ParamMap<K, V> implements Map<K, V> {
    
        private final Map<K, V> parent;
    
        public ParamMap(final Map<K, V> parent) {
            this.parent = parent;
        }
    
        public Map<K, V> getParent() {
            return parent;
        }
    
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 5.3K bytes
    - Viewed (0)
  2. src/main/java/org/codelibs/fess/es/config/exentity/DataConfig.java

                    final String scheme = paramMap.get(CRAWLER_WEB_AUTH + "." + webAuthName + ".scheme");
    
                    final AuthScheme authScheme = getAuthScheme(paramMap, webAuthName, scheme);
                    final AuthScope authScope = getAuthScope(webAuthName, scheme, paramMap);
                    final Credentials credentials = getCredentials(webAuthName, scheme, paramMap);
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Sat Oct 12 01:54:15 UTC 2024
    - 18.5K bytes
    - Viewed (0)
  3. src/test/java/org/codelibs/fess/entity/ParamMapTest.java

            assertNull(paramMap.get("xxx"));
            assertEquals("111", paramMap.get("aaa"));
            assertEquals("222", paramMap.get("aaa_bbb"));
            assertEquals("222", paramMap.get("aaaBbb"));
            assertEquals("222", paramMap.get("AaaBbb"));
            assertNull(paramMap.get("aaabbb"));
            assertEquals("333", paramMap.get("aaa_bbb_ccc"));
            assertEquals("333", paramMap.get("aaaBbbCcc"));
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 4.5K bytes
    - Viewed (0)
  4. src/main/java/org/codelibs/fess/es/config/exentity/WebConfig.java

                // proxy credentials
                if (paramMap.get(Param.Client.PROXY_USERNAME) != null && paramMap.get(Param.Client.PROXY_PASSWORD) != null) {
                    paramMap.put(HcHttpClient.PROXY_CREDENTIALS_PROPERTY, new UsernamePasswordCredentials(
                            paramMap.remove(Param.Client.PROXY_USERNAME).toString(), paramMap.remove(Param.Client.PROXY_PASSWORD).toString()));
                }
            } else {
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Fri Oct 11 21:11:58 UTC 2024
    - 9.8K bytes
    - Viewed (0)
  5. src/test/java/org/codelibs/fess/ds/AbstractDataStoreTest.java

            String value;
            final Map<String, Object> paramMap = new HashMap<>();
            paramMap.put("param1", "PARAM1");
            paramMap.put("param2", "PARAM2+");
            paramMap.put("param3", "PARAM3*");
    
            value = "\"abc\"";
            assertEquals("abc", dataStore.convertValue(Constants.DEFAULT_SCRIPT, value, paramMap));
    
            value = "param1";
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  6. src/main/java/org/codelibs/fess/util/ParameterUtil.java

                                }
                                paramMap.put(key, data);
                            } else {
                                paramMap.put(key, StringUtil.EMPTY);
                            }
                        } else {
                            paramMap.put(line.trim(), StringUtil.EMPTY);
                        }
                    }
                }
            }
            return paramMap;
        }
    
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 6.5K bytes
    - Viewed (0)
  7. src/test/java/org/codelibs/fess/filter/EncodingFilterTest.java

            Map<String, String[]> paramMap;
    
            paramMap = filter.parseQueryString("a=1", "UTF-8");
            assertEquals(1, paramMap.size());
            assertEquals("1", paramMap.get("a")[0]);
    
            paramMap = filter.parseQueryString("a=1&b=2", "UTF-8");
            assertEquals(2, paramMap.size());
            assertEquals("1", paramMap.get("a")[0]);
            assertEquals("2", paramMap.get("b")[0]);
    
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 3.3K bytes
    - Viewed (0)
  8. src/main/java/org/codelibs/fess/entity/DataStoreParams.java

        }
    
        public Map<String, Object> asMap() {
            return new ParamMap<>(new HashMap<>(getDataMap(params)));
        }
    
        protected static Map<String, Object> getDataMap(final Map<String, Object> params) {
            if (params instanceof final ParamMap<String, Object> paramMap) {
                return paramMap.getParent();
            }
            return params;
        }
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 2.3K bytes
    - Viewed (0)
  9. src/main/java/org/codelibs/fess/crawler/transformer/FessTransformer.java

                contextMap.put("doc", dataMap);
                final Map<String, Object> paramMap = new HashMap<>(dataMap.size() + 2);
                paramMap.putAll(dataMap);
                paramMap.put("value", target);
                paramMap.put("context", contextMap);
                target = evaluateValue(scriptType, template, paramMap);
            }
            if (key != null && target != null) {
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Fri Oct 11 21:11:58 UTC 2024
    - 9.5K bytes
    - Viewed (0)
  10. src/test/java/org/codelibs/fess/util/ParameterUtilTest.java

            paramMap = ParameterUtil.parse(value);
            assertEquals(1, paramMap.size());
            assertEquals("", paramMap.get("a"));
    
            value = "a";
            paramMap = ParameterUtil.parse(value);
            assertEquals(1, paramMap.size());
            assertEquals("", paramMap.get("a"));
    
            value = "a=b=c";
            paramMap = ParameterUtil.parse(value);
            assertEquals(1, paramMap.size());
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 7.1K bytes
    - Viewed (0)
Back to top