Mercurial > dive4elements > river
comparison gwt-client/src/main/java/org/dive4elements/river/client/server/ChartOutputServiceImpl.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 | 6b278187ed9d |
children | 5e38e2924c07 |
comparison
equal
deleted
inserted
replaced
8202:e4606eae8ea5 | 8203:238fc722f87a |
---|---|
37 * @author <a href="mailto:ingo.weinzierl@intevation.de">Ingo Weinzierl</a> | 37 * @author <a href="mailto:ingo.weinzierl@intevation.de">Ingo Weinzierl</a> |
38 */ | 38 */ |
39 public class ChartOutputServiceImpl | 39 public class ChartOutputServiceImpl |
40 extends HttpServlet | 40 extends HttpServlet |
41 { | 41 { |
42 private static final Logger logger = | 42 private static final Logger log = |
43 Logger.getLogger(ChartOutputServiceImpl.class); | 43 Logger.getLogger(ChartOutputServiceImpl.class); |
44 | 44 |
45 | 45 |
46 /** Handle a get, collectionOut. */ | 46 /** Handle a get, collectionOut. */ |
47 public void doGet(HttpServletRequest req, HttpServletResponse resp) { | 47 public void doGet(HttpServletRequest req, HttpServletResponse resp) { |
48 logger.info("ChartOutputServiceImpl.doGet"); | 48 log.info("ChartOutputServiceImpl.doGet"); |
49 | 49 |
50 try { | 50 try { |
51 OutputStream out = resp.getOutputStream(); | 51 OutputStream out = resp.getOutputStream(); |
52 | 52 |
53 String url = getServletContext().getInitParameter("server-url"); | 53 String url = getServletContext().getInitParameter("server-url"); |
68 | 68 |
69 out.close(); | 69 out.close(); |
70 out.flush(); | 70 out.flush(); |
71 } | 71 } |
72 catch (IOException ioe) { | 72 catch (IOException ioe) { |
73 logger.error(ioe, ioe); | 73 log.error(ioe, ioe); |
74 } | 74 } |
75 catch (Exception e) { | 75 catch (Exception e) { |
76 logger.error(e, e); | 76 log.error(e, e); |
77 } | 77 } |
78 } | 78 } |
79 | 79 |
80 | 80 |
81 protected Map<String, String> prepareChartAttributes(HttpServletRequest req) { | 81 protected Map<String, String> prepareChartAttributes(HttpServletRequest req) { |
90 attr.put("miny", req.getParameter("miny")); | 90 attr.put("miny", req.getParameter("miny")); |
91 attr.put("maxy", req.getParameter("maxy")); | 91 attr.put("maxy", req.getParameter("maxy")); |
92 attr.put("format", req.getParameter("format")); | 92 attr.put("format", req.getParameter("format")); |
93 attr.put("km", req.getParameter("currentKm")); | 93 attr.put("km", req.getParameter("currentKm")); |
94 | 94 |
95 if (logger.isDebugEnabled()) { | 95 if (log.isDebugEnabled()) { |
96 logger.debug("====== ZOOM VALUES ======="); | 96 log.debug("====== ZOOM VALUES ======="); |
97 logger.debug(" min x: " + req.getParameter("minx")); | 97 log.debug(" min x: " + req.getParameter("minx")); |
98 logger.debug(" max x: " + req.getParameter("maxx")); | 98 log.debug(" max x: " + req.getParameter("maxx")); |
99 logger.debug(" min y: " + req.getParameter("miny")); | 99 log.debug(" min y: " + req.getParameter("miny")); |
100 logger.debug(" max y: " + req.getParameter("maxy")); | 100 log.debug(" max y: " + req.getParameter("maxy")); |
101 } | 101 } |
102 | 102 |
103 return attr; | 103 return attr; |
104 } | 104 } |
105 | 105 |