Mercurial > dive4elements > river
comparison gwt-client/src/main/java/org/dive4elements/river/client/server/ServerInfoServiceImpl.java @ 8203:238fc722f87a
sed 's/logger/log/g' src/**/*.java
author | Sascha L. Teichmann <teichmann@intevation.de> |
---|---|
date | Fri, 05 Sep 2014 13:19:22 +0200 |
parents | b0b0ba6e7bb0 |
children | a805211690f7 |
comparison
equal
deleted
inserted
replaced
8202:e4606eae8ea5 | 8203:238fc722f87a |
---|---|
19 ServerInfoService { | 19 ServerInfoService { |
20 | 20 |
21 // This works only because currently there is only one info transmitted | 21 // This works only because currently there is only one info transmitted |
22 private static final String XPATH_INFO = "/art:server/art:info"; | 22 private static final String XPATH_INFO = "/art:server/art:info"; |
23 | 23 |
24 private final Logger logger = Logger.getLogger(ServerInfoServiceImpl.class); | 24 private final Logger log = Logger.getLogger(ServerInfoServiceImpl.class); |
25 | 25 |
26 @Override | 26 @Override |
27 public Map<String, String> getConfig(String locale) { | 27 public Map<String, String> getConfig(String locale) { |
28 Map<String, String> infoMap = new HashMap<String, String>(); | 28 Map<String, String> infoMap = new HashMap<String, String>(); |
29 String url = getServletContext().getInitParameter("server-url"); | 29 String url = getServletContext().getInitParameter("server-url"); |
53 ArtifactNamespaceContext.NAMESPACE_URI, "key"); | 53 ArtifactNamespaceContext.NAMESPACE_URI, "key"); |
54 String val = el.getAttributeNS( | 54 String val = el.getAttributeNS( |
55 ArtifactNamespaceContext.NAMESPACE_URI, "value"); | 55 ArtifactNamespaceContext.NAMESPACE_URI, "value"); |
56 infoMap.put(key, val); | 56 infoMap.put(key, val); |
57 | 57 |
58 logger.debug("ServerInfoServiceImpl: " + key + "=" + val); | 58 log.debug("ServerInfoServiceImpl: " + key + "=" + val); |
59 } | 59 } |
60 } | 60 } |
61 catch (Exception ex) { | 61 catch (Exception ex) { |
62 logger.error(ex, ex); | 62 log.error(ex, ex); |
63 } | 63 } |
64 | 64 |
65 return infoMap; | 65 return infoMap; |
66 } | 66 } |
67 | 67 |