Пример #1
0
 /**
  * Get a processing configuration as a boolean value
  *
  * @param pConfigKey configuration to lookup
  * @return boolean value of the configuration, the default value or false if the default value is
  *     null
  */
 public Boolean getParameterAsBool(ConfigKey pConfigKey) {
   String booleanS = getParameter(pConfigKey);
   return Boolean.parseBoolean(booleanS != null ? booleanS : pConfigKey.getDefaultValue());
 }
Пример #2
0
 final void setProcessingConfig(String pKey, Object pValue) {
   ConfigKey cKey = ConfigKey.getRequestConfigKey(pKey);
   if (cKey != null) {
     processingConfig.put(cKey, pValue != null ? pValue.toString() : null);
   }
 }
 private Map<String, String> mapWithPrefix(String prefix, ConfigKey key, Properties properties) {
   return extractFromPropertiesAsMap(key.asPropertyKey(prefix), properties);
 }
 private String withPrefix(String prefix, ConfigKey key, Properties properties) {
   return properties.getProperty(key.asPropertyKey(prefix));
 }
 private List<String> listWithPrefix(String prefix, ConfigKey key, Properties properties) {
   return extractFromPropertiesAsList(key.asPropertyKey(prefix), properties);
 }