Mercurial > dive4elements > river
comparison gwt-client/src/main/java/org/dive4elements/river/client/server/ChartOutputServiceImpl.java @ 9104:07d51fd4864c
Added metadata subtitle to all chart export
author | gernotbelger |
---|---|
date | Tue, 29 May 2018 11:35:44 +0200 |
parents | 5e38e2924c07 |
children |
comparison
equal
deleted
inserted
replaced
9103:e68d4a10c308 | 9104:07d51fd4864c |
---|---|
42 private static final Logger log = | 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 @Override | |
47 public void doGet(HttpServletRequest req, HttpServletResponse resp) { | 48 public void doGet(HttpServletRequest req, HttpServletResponse resp) { |
48 log.info("ChartOutputServiceImpl.doGet"); | 49 log.info("ChartOutputServiceImpl.doGet"); |
49 | 50 |
50 try { | 51 try { |
51 OutputStream out = resp.getOutputStream(); | 52 OutputStream out = resp.getOutputStream(); |
77 log.error(e, e); | 78 log.error(e, e); |
78 } | 79 } |
79 } | 80 } |
80 | 81 |
81 | 82 |
82 protected Map<String, String> prepareChartAttributes( | 83 private Map<String, String> prepareChartAttributes( final HttpServletRequest req ) { |
83 HttpServletRequest req | |
84 ) { | |
85 Map<String, String> attr = new HashMap<String, String>(); | 84 Map<String, String> attr = new HashMap<String, String>(); |
86 | |
87 Map params = req.getParameterMap(); | |
88 | 85 |
89 attr.put("width", req.getParameter("width")); | 86 attr.put("width", req.getParameter("width")); |
90 attr.put("height", req.getParameter("height")); | 87 attr.put("height", req.getParameter("height")); |
91 attr.put("minx", req.getParameter("minx")); | 88 attr.put("minx", req.getParameter("minx")); |
92 attr.put("maxx", req.getParameter("maxx")); | 89 attr.put("maxx", req.getParameter("maxx")); |
93 attr.put("miny", req.getParameter("miny")); | 90 attr.put("miny", req.getParameter("miny")); |
94 attr.put("maxy", req.getParameter("maxy")); | 91 attr.put("maxy", req.getParameter("maxy")); |
95 attr.put("format", req.getParameter("format")); | 92 attr.put("format", req.getParameter("format")); |
93 attr.put("export", req.getParameter("export")); | |
96 attr.put("km", req.getParameter("currentKm")); | 94 attr.put("km", req.getParameter("currentKm")); |
97 | 95 |
98 if (log.isDebugEnabled()) { | 96 if (log.isDebugEnabled()) { |
99 log.debug("====== ZOOM VALUES ======="); | 97 log.debug("====== ZOOM VALUES ======="); |
100 log.debug(" min x: " + req.getParameter("minx")); | 98 log.debug(" min x: " + req.getParameter("minx")); |