Mercurial > dive4elements > river
comparison gwt-client/src/main/java/org/dive4elements/river/client/server/ChartOutputServiceImpl.java @ 8856:5e38e2924c07 3.2.x
Fix code style.
author | Tom Gottfried <tom@intevation.de> |
---|---|
date | Thu, 18 Jan 2018 20:12:01 +0100 |
parents | 238fc722f87a |
children | 07d51fd4864c 0a5239a1e46e |
comparison
equal
deleted
inserted
replaced
8855:d7c005e12af0 | 8856:5e38e2924c07 |
---|---|
58 | 58 |
59 prepareHeader(req, resp); | 59 prepareHeader(req, resp); |
60 | 60 |
61 Document request = ClientProtocolUtils.newOutCollectionDocument( | 61 Document request = ClientProtocolUtils.newOutCollectionDocument( |
62 uuid, type, type, | 62 uuid, type, type, |
63 ChartServiceHelper.getChartAttributes(prepareChartAttributes(req))); | 63 ChartServiceHelper.getChartAttributes( |
64 prepareChartAttributes(req))); | |
64 | 65 |
65 HttpClient client = new HttpClientImpl(url, locale); | 66 HttpClient client = new HttpClientImpl(url, locale); |
66 | 67 |
67 client.collectionOut(request, uuid, "chart", out); | 68 client.collectionOut(request, uuid, "chart", out); |
68 | 69 |
76 log.error(e, e); | 77 log.error(e, e); |
77 } | 78 } |
78 } | 79 } |
79 | 80 |
80 | 81 |
81 protected Map<String, String> prepareChartAttributes(HttpServletRequest req) { | 82 protected Map<String, String> prepareChartAttributes( |
83 HttpServletRequest req | |
84 ) { | |
82 Map<String, String> attr = new HashMap<String, String>(); | 85 Map<String, String> attr = new HashMap<String, String>(); |
83 | 86 |
84 Map params = req.getParameterMap(); | 87 Map params = req.getParameterMap(); |
85 | 88 |
86 attr.put("width", req.getParameter("width")); | 89 attr.put("width", req.getParameter("width")); |