Mercurial > dive4elements > river
comparison flys-client/src/main/java/de/intevation/flys/client/server/ChartOutputServiceImpl.java @ 254:6838e4112eeb
Bugfix: the current locale string is used to fetch chart images now.
flys-client/trunk@1864 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Ingo Weinzierl <ingo.weinzierl@intevation.de> |
---|---|
date | Mon, 09 May 2011 11:21:50 +0000 |
parents | 7ea004d0ffbc |
children | b493d606fdef |
comparison
equal
deleted
inserted
replaced
253:aea3ab5997b2 | 254:6838e4112eeb |
---|---|
32 OutputStream out = resp.getOutputStream(); | 32 OutputStream out = resp.getOutputStream(); |
33 | 33 |
34 String serverUrl = req.getParameter("server"); | 34 String serverUrl = req.getParameter("server"); |
35 String uuid = req.getParameter("uuid"); | 35 String uuid = req.getParameter("uuid"); |
36 String type = req.getParameter("type"); | 36 String type = req.getParameter("type"); |
37 String locale = req.getParameter("locale"); | |
37 String mimeType = "image/png"; | 38 String mimeType = "image/png"; |
38 | 39 |
39 Document request = ClientProtocolUtils.newOutCollectionDocument( | 40 Document request = ClientProtocolUtils.newOutCollectionDocument( |
40 uuid, type); | 41 uuid, type); |
41 | 42 |
42 HttpClient client = new HttpClientImpl(serverUrl); | 43 HttpClient client = new HttpClientImpl(serverUrl, locale); |
43 client.collectionOut(request, uuid, "chart", out); | 44 client.collectionOut(request, uuid, "chart", out); |
44 | 45 |
45 out.close(); | 46 out.close(); |
46 out.flush(); | 47 out.flush(); |
47 } | 48 } |