Revision 5656

View differences:

trunk/applications/appgvSIG/src/com/iver/cit/gvsig/gui/preferences/network/FirewallPage.java
43 43
*
44 44
* $Id$
45 45
* $Log$
46
* Revision 1.5  2006-06-05 10:39:02  jaume
46
* Revision 1.6  2006-06-05 11:00:09  jaume
47 47
* *** empty log message ***
48 48
*
49
* Revision 1.5  2006/06/05 10:39:02  jaume
50
* *** empty log message ***
51
*
49 52
* Revision 1.4  2006/06/05 10:13:40  jaume
50 53
* *** empty log message ***
51 54
*
......
124 127
		addComponent(PluginServices.getText(this, "options.firewall.http.nonProxy") + ":",
125 128
			httpNonProxy = new JTextField("", 15));
126 129

  
127
		boolean enabled = prefs.getBoolean("firewall.enabled", false);
130
		boolean enabled = prefs.getBoolean("firewall.http.enabled", false);
128 131
		httpEnabled.setSelected(enabled);
129 132
		httpHost.setEnabled(enabled);
130 133
		httpPort.setEnabled(enabled);
......
171 174

  
172 175
	public void initializeValues() {
173 176
		httpEnabled.setSelected(false);
174
		httpHost.setText(prefs.get("firewall.host", ""));
175
		httpPort.setText(prefs.get("firewall.port", ""));
176
		httpUser.setText(prefs.get("firewall.user", ""));
177
		httpPass.setText(prefs.get("firewall.password", ""));
178
		httpNonProxy.setText(prefs.get("firewall.nonProxyHosts", ""));
177
		httpHost.setText(prefs.get("firewall.http.host", ""));
178
		httpPort.setText(prefs.get("firewall.http.port", ""));
179
		httpUser.setText(prefs.get("firewall.http.user", ""));
180
		httpPass.setText(prefs.get("firewall.http.password", ""));
181
		httpNonProxy.setText(prefs.get("firewall.http.nonProxyHosts", ""));
179 182
		socksEnabled.setSelected(false);
180 183
		socksHost.setText(prefs.get("firewall.socks.host", ""));
181 184
		socksPort.setText(prefs.get("firewall.socks.port", ""));
......
187 190
		
188 191
		try {
189 192
			httpURL = new URL(httpHost.getText()+":"+httpPort.getText());
190
			prefs.putBoolean("firewall.enabled", httpEnabled.isSelected());
191
			prefs.put("firewall.host", httpHost.getText());
192
			prefs.put("firewall.port", httpPort.getText());
193
			prefs.put("firewall.user", httpUser.getText());
194
			prefs.put("firewall.password", new String(httpPass.getPassword()));
195
			prefs.put("firewall.nonProxyHosts", httpNonProxy.getText());
193
			prefs.putBoolean("firewall.http.enabled", httpEnabled.isSelected());
194
			prefs.put("firewall.http.host", httpHost.getText());
195
			prefs.put("firewall.http.port", httpPort.getText());
196
			prefs.put("firewall.http.user", httpUser.getText());
197
			prefs.put("firewall.http.password", new String(httpPass.getPassword()));
198
			prefs.put("firewall.http.nonProxyHosts", httpNonProxy.getText());
196 199

  
197 200
			if (httpEnabled.isSelected()) {
198 201
				systemSettings.put("http.proxyHost", httpURL.getHost());

Also available in: Unified diff