本文整理汇总了Java中org.apache.commons.configuration.XMLConfiguration.configurationAt方法的典型用法代码示例。如果您正苦于以下问题:Java XMLConfiguration.configurationAt方法的具体用法?Java XMLConfiguration.configurationAt怎么用?Java XMLConfiguration.configurationAt使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.apache.commons.configuration.XMLConfiguration
的用法示例。
在下文中一共展示了XMLConfiguration.configurationAt方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getLPlatformDescriptorConfiguration
import org.apache.commons.configuration.XMLConfiguration; //导入方法依赖的package包/类
/**
* Retrieves a list of templates available for the tenant.
*
* @param descriptorId
* @return the list
* @throws RORException
*/
public LPlatformDescriptorConfiguration getLPlatformDescriptorConfiguration(
String descriptorId) throws IaasException {
HashMap<String, String> request = getBasicParameters();
request.put(LParameter.ACTION, LOperation.GET_LPLATFORM_DESCR_CONFIG);
request.put(LParameter.LPLATFORM_DESCR_ID, descriptorId);
XMLConfiguration result = execute(request);
return new LPlatformDescriptorConfiguration(
result.configurationAt("lplatformdescriptor"));
}
示例2: extractMQSCAttributeAndValueForReplacement
import org.apache.commons.configuration.XMLConfiguration; //导入方法依赖的package包/类
private void extractMQSCAttributeAndValueForReplacement(
XMLConfiguration config, String environment, List<String> mqscVars,
List<String> mqscVarValues) {
SubnodeConfiguration localSubnodeConfig = config.configurationAt(environment);
for(Iterator<String> iter = localSubnodeConfig.getKeys();iter.hasNext();){
String key = iter.next();
mqscVars.add(MQSC_VAR_PREFIX + key + MQSC_VAR_SUFFIX);
mqscVarValues.add(config.getString(environment + "." + key));
}
}
示例3: getConfiguration
import org.apache.commons.configuration.XMLConfiguration; //导入方法依赖的package包/类
public LPlatformConfiguration getConfiguration() throws IaasException,
SuspendException {
XMLConfiguration result = executeLPlatformAction(LOperation.GET_LPLATFORM_CONFIG);
return new LPlatformConfiguration(result.configurationAt("lplatform"));
}
示例4: getConfiguration
import org.apache.commons.configuration.XMLConfiguration; //导入方法依赖的package包/类
/**
* @return the configuration
* @throws RORException
*/
public LServerConfiguration getConfiguration() throws IaasException {
XMLConfiguration result = executeLServerAction(LOperation.GET_LSERVER_CONFIG);
return new LServerConfiguration(result.configurationAt("lserver"));
}