comparison flys-client/src/main/java/de/intevation/flys/client/server/RiverServiceImpl.java @ 2940:2867a0192aed

Cosmetics, whitespaces, docs. flys-client/trunk@4897 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Felix Wolfsteller <felix.wolfsteller@intevation.de>
date Sun, 08 Jul 2012 09:37:45 +0000
parents bc06a671ef60
children 0de61fc9d281
comparison
equal deleted inserted replaced
2939:8e6b1df7c3b0 2940:2867a0192aed
34 */ 34 */
35 public class RiverServiceImpl 35 public class RiverServiceImpl
36 extends RemoteServiceServlet 36 extends RemoteServiceServlet
37 implements RiverService 37 implements RiverService
38 { 38 {
39 /** Private logger. */
39 private static final Logger logger = 40 private static final Logger logger =
40 Logger.getLogger(RiverServiceImpl.class); 41 Logger.getLogger(RiverServiceImpl.class);
41
42 42
43 /** The XPath string that points to the rivers in the resulting document.*/ 43 /** The XPath string that points to the rivers in the resulting document.*/
44 public static final String XPATH_RIVERS = "/art:rivers/art:river"; 44 public static final String XPATH_RIVERS = "/art:rivers/art:river";
45 45
46 /** The error message key that is thrown if an error occured while reading 46 /** The error message key that is thrown if an error occured while reading
47 * the supported rivers from server.*/ 47 * the supported rivers from server.*/
48 public static final String ERROR_NO_RIVERS_FOUND = "error_no_rivers_found"; 48 public static final String ERROR_NO_RIVERS_FOUND = "error_no_rivers_found";
49 49
50 50
51 /** Get river list. */
51 public River[] list(String locale) 52 public River[] list(String locale)
52 throws ServerException 53 throws ServerException
53 { 54 {
54 String url = getServletContext().getInitParameter("server-url"); 55 String url = getServletContext().getInitParameter("server-url");
55 56
56 Document doc = XMLUtils.newDocument(); 57 Document doc = XMLUtils.newDocument();
57 58
58 XMLUtils.ElementCreator ec = new XMLUtils.ElementCreator( 59 XMLUtils.ElementCreator ec = new XMLUtils.ElementCreator(
59 doc, 60 doc,
60 ArtifactNamespaceContext.NAMESPACE_URI, 61 ArtifactNamespaceContext.NAMESPACE_URI,
61 ArtifactNamespaceContext.NAMESPACE_PREFIX); 62 ArtifactNamespaceContext.NAMESPACE_PREFIX);

http://dive4elements.wald.intevation.org