storeValues( values, settings );
}
public StringToStringMap getValues( Settings settings )
{
StringToStringMap values = new StringToStringMap();
values.put( HOST, settings.getString( ProxySettings.HOST, "" ) );
values.put( PORT, settings.getString( ProxySettings.PORT, "" ) );
values.put( USERNAME, settings.getString( ProxySettings.USERNAME, "" ) );
values.put( PASSWORD, settings.getString( ProxySettings.PASSWORD, "" ) );
values.put( EXCLUDES, settings.getString( ProxySettings.EXCLUDES, "" ) );
values.put( ENABLE_PROXY, settings.getBoolean( ProxySettings.ENABLE_PROXY ) );
ProxyUtils.setProxyEnabled( settings.getBoolean( ProxySettings.ENABLE_PROXY ) );
return values;
}