this.proxySettings = proxySettings; setAttributeByTagName(new String[] {"options", "proxy", "use"} , Boolean.toString(proxySettings.isUse())); setAttributeByTagName(new String[] {"options", "proxy", "host"} , proxySettings.getHost()); setAttributeByTagName(new String[] {"options", "proxy", "port"} , Integer.toString(proxySettings.getPort())); setAttributeByTagName(new String[] {"options", "proxy", "userpass"} , proxySettings.getUserpass()); saveDom(); }
this.proxySettings = proxySettings; propertyHandler.put("options_proxy_use", proxySettings.isUse()); propertyHandler.put("options_proxy_host", proxySettings.getHost()); propertyHandler.put("options_proxy_port", proxySettings.getPort()); propertyHandler.put("options_proxy_userpass", proxySettings .getUserpass()); saveFile(); }
    public void saveProxySettings(ProxySettings proxySettings) {        this.proxySettings = proxySettings;        setAttributeByTagName(new String[] {"options", "proxy", "use"}                              , Boolean.toString(proxySettings.isUse()));        setAttributeByTagName(new String[] {"options", "proxy", "host"}                              , proxySettings.getHost());        setAttributeByTagName(new String[] {"options", "proxy", "port"}                              , Integer.toString(proxySettings.getPort()));        setAttributeByTagName(new String[] {"options", "proxy", "userpass"}                              , proxySettings.getUserpass());        saveDom();    }