Mercurial > dive4elements > river
comparison gwt-client/src/main/java/org/dive4elements/river/client/server/MapOutputServiceImpl.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 | ea9eef426962 |
children | 5e38e2924c07 |
comparison
equal
deleted
inserted
replaced
8202:e4606eae8ea5 | 8203:238fc722f87a |
---|---|
36 public class MapOutputServiceImpl | 36 public class MapOutputServiceImpl |
37 extends RemoteServiceServlet | 37 extends RemoteServiceServlet |
38 implements MapOutputService | 38 implements MapOutputService |
39 { | 39 { |
40 | 40 |
41 private static final Logger logger = | 41 private static final Logger log = |
42 Logger.getLogger(MapOutputServiceImpl.class); | 42 Logger.getLogger(MapOutputServiceImpl.class); |
43 | 43 |
44 | 44 |
45 public static final String ERROR_NO_MAP_CONFIG = "error_no_map_config"; | 45 public static final String ERROR_NO_MAP_CONFIG = "error_no_map_config"; |
46 | 46 |
47 public static final String ERROR_NO_MAP_OUTPUT_TYPE = "error_no_map_output_type"; | 47 public static final String ERROR_NO_MAP_OUTPUT_TYPE = "error_no_map_output_type"; |
48 | 48 |
49 public MapConfig doOut(Collection collection) | 49 public MapConfig doOut(Collection collection) |
50 throws ServerException | 50 throws ServerException |
51 { | 51 { |
52 logger.info("MapOutputServiceImpl.doOut"); | 52 log.info("MapOutputServiceImpl.doOut"); |
53 | 53 |
54 String url = getServletContext().getInitParameter("server-url"); | 54 String url = getServletContext().getInitParameter("server-url"); |
55 String uuid = collection.identifier(); | 55 String uuid = collection.identifier(); |
56 | 56 |
57 Map<String, OutputMode> modes = collection.getOutputModes(); | 57 Map<String, OutputMode> modes = collection.getOutputModes(); |
76 Document response = XMLUtils.parseDocument(is); | 76 Document response = XMLUtils.parseDocument(is); |
77 | 77 |
78 return MapHelper.parseConfig(response); | 78 return MapHelper.parseConfig(response); |
79 } | 79 } |
80 catch (ConnectionException e) { | 80 catch (ConnectionException e) { |
81 logger.error(e, e); | 81 log.error(e, e); |
82 } | 82 } |
83 catch (IOException ioe) { | 83 catch (IOException ioe) { |
84 logger.error(ioe, ioe); | 84 log.error(ioe, ioe); |
85 } | 85 } |
86 | 86 |
87 throw new ServerException(ERROR_NO_MAP_CONFIG); | 87 throw new ServerException(ERROR_NO_MAP_CONFIG); |
88 } | 88 } |
89 } | 89 } |