Mercurial > dive4elements > river
comparison gwt-client/src/main/java/org/dive4elements/river/client/client/Config.java @ 6418:c702bac7f72e
Make wiki url configurable in gwt client (flys/#1197). It's probably better to retrieve
that config from the server but this solution is faster ;) (ServerInfoService wip)
author | Christian Lins <christian.lins@intevation.de> |
---|---|
date | Wed, 26 Jun 2013 10:39:10 +0200 |
parents | ea9eef426962 |
children | ac6c41fcae55 |
comparison
equal
deleted
inserted
replaced
6417:14b5674e57a4 | 6418:c702bac7f72e |
---|---|
7 */ | 7 */ |
8 | 8 |
9 package org.dive4elements.river.client.client; | 9 package org.dive4elements.river.client.client; |
10 | 10 |
11 import com.google.gwt.i18n.client.LocaleInfo; | 11 import com.google.gwt.i18n.client.LocaleInfo; |
12 | |
13 import com.google.gwt.xml.client.Document; | 12 import com.google.gwt.xml.client.Document; |
14 import com.google.gwt.xml.client.Node; | 13 import com.google.gwt.xml.client.Node; |
15 | 14 |
16 | 15 |
17 /** | 16 /** |
79 return server.getFirstChild().getNodeValue(); | 78 return server.getFirstChild().getNodeValue(); |
80 } | 79 } |
81 | 80 |
82 | 81 |
83 /** | 82 /** |
83 * Returns the URL of the FLYS/d4e-Wiki. | |
84 * | |
85 * @return wiki base URL | |
86 */ | |
87 public String getWikiUrl() { | |
88 Node server = config.getElementsByTagName("wiki").item(0); | |
89 return server.getFirstChild().getNodeValue(); | |
90 } | |
91 | |
92 | |
93 /** | |
84 * Returns the name of the current locale. | 94 * Returns the name of the current locale. |
85 * | 95 * |
86 * @return the name of the current locale. | 96 * @return the name of the current locale. |
87 */ | 97 */ |
88 public String getLocale() { | 98 public String getLocale() { |