示例#1
0
 /**
  * Sets a config parameter for this route node definition. If the key already exists the existing
  * RouteNodeConfigParam is modified, otherwise a new one is created
  *
  * @param key the key of the parameter to set
  * @param value the value to set
  */
 protected void setConfigParam(String key, String value) {
   Map<String, RouteNodeConfigParam> configParamMap =
       Utilities.getKeyValueCollectionAsLookupTable(configParams);
   RouteNodeConfigParam cfCfgParam = configParamMap.get(key);
   if (cfCfgParam == null) {
     cfCfgParam = new RouteNodeConfigParam(this, key, value);
     configParams.add(cfCfgParam);
   } else {
     cfCfgParam.setValue(value);
   }
 }
示例#2
0
 /** @return the RouteNodeConfigParam value under the 'contentFragment' key */
 public String getContentFragment() {
   RouteNodeConfigParam cfCfgParam = getConfigParam(CONTENT_FRAGMENT_CFG_KEY);
   if (cfCfgParam == null) return null;
   return cfCfgParam.getValue();
 }