Mercurial > dive4elements > river
comparison gwt-client/src/main/java/org/dive4elements/river/client/server/ServerInfoServiceImpl.java @ 9726:0a5239a1e46e 3.2.x
Upgrade to Log4j 2
author | Tom Gottfried <tom@intevation.de> |
---|---|
date | Wed, 02 Mar 2022 10:26:50 +0100 |
parents | a805211690f7 |
children |
comparison
equal
deleted
inserted
replaced
9725:da398790fa32 | 9726:0a5239a1e46e |
---|---|
11 import java.util.HashMap; | 11 import java.util.HashMap; |
12 import java.util.Map; | 12 import java.util.Map; |
13 | 13 |
14 import javax.xml.xpath.XPathConstants; | 14 import javax.xml.xpath.XPathConstants; |
15 | 15 |
16 import org.apache.log4j.Logger; | 16 import org.apache.logging.log4j.Logger; |
17 import org.apache.logging.log4j.LogManager; | |
17 import org.dive4elements.artifacts.common.ArtifactNamespaceContext; | 18 import org.dive4elements.artifacts.common.ArtifactNamespaceContext; |
18 import org.dive4elements.artifacts.common.utils.XMLUtils; | 19 import org.dive4elements.artifacts.common.utils.XMLUtils; |
19 import org.dive4elements.artifacts.httpclient.http.HttpClient; | 20 import org.dive4elements.artifacts.httpclient.http.HttpClient; |
20 import org.dive4elements.artifacts.httpclient.http.HttpClientImpl; | 21 import org.dive4elements.artifacts.httpclient.http.HttpClientImpl; |
21 import org.dive4elements.river.client.client.services.ServerInfoService; | 22 import org.dive4elements.river.client.client.services.ServerInfoService; |
27 ServerInfoService { | 28 ServerInfoService { |
28 | 29 |
29 // This works only because currently there is only one info transmitted | 30 // This works only because currently there is only one info transmitted |
30 private static final String XPATH_INFO = "/art:server/art:info"; | 31 private static final String XPATH_INFO = "/art:server/art:info"; |
31 | 32 |
32 private final Logger log = Logger.getLogger(ServerInfoServiceImpl.class); | 33 private final Logger log = LogManager.getLogger(ServerInfoServiceImpl.class); |
33 | 34 |
34 @Override | 35 @Override |
35 public Map<String, String> getConfig(String locale) { | 36 public Map<String, String> getConfig(String locale) { |
36 Map<String, String> infoMap = new HashMap<String, String>(); | 37 Map<String, String> infoMap = new HashMap<String, String>(); |
37 String url = getServletContext().getInitParameter("server-url"); | 38 String url = getServletContext().getInitParameter("server-url"); |