@@ -0,0 +1,2043 @@
+package eu.europa.esig.dss.client.http.proxy;%0A%0Aimport java.util.Collection;%0Aimport java.util.HashMap;%0Aimport java.util.Map;%0A%0Apublic class ProxyDaoImpl implements ProxyDao %7B%0A%0A%09protected Map%3CProxyKey, ProxyPreference%3E proxyPreferences = new HashMap%3CProxyKey, ProxyPreference%3E();%0A%0A%09public void setHttpsHost(String httpsHost) %7B%0A%09%09update(ProxyKey.HTTPS_HOST, httpsHost);%0A%09%7D%0A%0A%09public void setHttpsPort(String httpsPort) %7B%0A%09%09update(ProxyKey.HTTPS_PORT, httpsPort);%0A%09%7D%0A%0A%09public void setHttpsUser(String httpsUser) %7B%0A%09%09update(ProxyKey.HTTPS_USER, httpsUser);%0A%09%7D%0A%0A%09public void setHttpsPassword(String httpsPassword) %7B%0A%09%09update(ProxyKey.HTTPS_PASSWORD, httpsPassword);%0A%09%7D%0A%0A%09public void setHttpsExclude(String httpsExclude) %7B%0A%09%09update(ProxyKey.HTTPS_EXCLUDE, httpsExclude);%0A%09%7D%0A%0A%09public void setHttpsEnable(String httpsEnable) %7B%0A%09%09update(ProxyKey.HTTPS_ENABLED, httpsEnable);%0A%09%7D%0A%0A%09public void setHttpHost(String httpHost) %7B%0A%09%09update(ProxyKey.HTTP_HOST, httpHost);%0A%09%7D%0A%0A%09public void setHttpPort(String httpPort) %7B%0A%09%09update(ProxyKey.HTTP_PORT, httpPort);%0A%09%7D%0A%0A%09public void setHttpUser(String httpUser) %7B%0A%09%09update(ProxyKey.HTTP_USER, httpUser);%0A%09%7D%0A%0A%09public void setHttpPassword(String httpPassword) %7B%0A%09%09update(ProxyKey.HTTP_PASSWORD, httpPassword);%0A%09%7D%0A%0A%09public void setHttpExclude(String httpExclude) %7B%0A%09%09update(ProxyKey.HTTP_EXCLUDE, httpExclude);%0A%09%7D%0A%0A%09public void setHttpEnable(String httpEnable) %7B%0A%09%09update(ProxyKey.HTTP_ENABLED, httpEnable);%0A%09%7D%0A%0A%09private void update(ProxyKey key, String value) %7B%0A%09%09ProxyPreference proxyPreference = proxyPreferences.get(key);%0A%09%09if (proxyPreference == null) %7B%0A%09%09%09proxyPreference = new ProxyPreference(key, value);%0A%09%09%09proxyPreferences.put(key, proxyPreference);%0A%09%09%7D else %7B%0A%09%09%09proxyPreference.setValue(value);%0A%09%09%7D%0A%09%7D%0A%0A%09@Override%0A%09public ProxyPreference get(ProxyKey id) %7B%0A%09%09return proxyPreferences.get(id);%0A%09%7D%0A%0A%09@Override%0A%09public Collection%3CProxyPreference%3E getAll() %7B%0A%09%09return proxyPreferences.values();%0A%09%7D%0A%0A%09@Override%0A%09public void update(ProxyPreference entity) %7B%0A%09%09proxyPreferences.put(entity.getProxyKey(), entity);%0A%09%7D%0A%0A%7D%0A

Add an implementation of ProxyDao to inject properties with Spring