Example usage for org.apache.commons.configuration FileConfiguration getString

List of usage examples for org.apache.commons.configuration FileConfiguration getString

Introduction

In this page you can find the example usage for org.apache.commons.configuration FileConfiguration getString.

Prototype

String getString(String key);

Source Link

Document

Get a string associated with the given configuration key.

Usage

From source file:org.zaproxy.zap.extension.httppanel.component.HttpPanelComponentViewsManager.java

public void loadConfig(FileConfiguration fileConfiguration) {
    savedSelectedViewName = fileConfiguration.getString(configurationKey + DEFAULT_VIEW_KEY);

    Iterator<HttpPanelView> it = views.values().iterator();
    while (it.hasNext()) {
        it.next().loadConfiguration(fileConfiguration);
    }//  w w  w. j  av a  2 s  .  co m
}

From source file:org.zaproxy.zap.extension.httppanel.HttpPanel.java

public void loadConfig(FileConfiguration fileConfiguration) {
    savedLastSelectedComponentName = fileConfiguration.getString(baseConfigurationKey + DEFAULT_COMPONENT_KEY);

    synchronized (components) {
        Iterator<HttpPanelComponentInterface> it = components.values().iterator();
        while (it.hasNext()) {
            it.next().loadConfig(fileConfiguration);
        }//  ww  w  .j  a va 2s  .  c  o m
    }
}