Mercurial > dive4elements > river
comparison flys-client/src/main/java/de/intevation/flys/client/server/ExportServiceImpl.java @ 432:8ea213bd8fba
Adjusted a method signature of ClientProtocolUtils that has been changed in the last revision.
flys-client/trunk@1934 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Ingo Weinzierl <ingo.weinzierl@intevation.de> |
---|---|
date | Tue, 17 May 2011 09:58:53 +0000 |
parents | 71a7533555d0 |
children | ab8eb2f544f2 |
comparison
equal
deleted
inserted
replaced
431:86e6097e5a6a | 432:8ea213bd8fba |
---|---|
38 String locale = req.getParameter("locale"); | 38 String locale = req.getParameter("locale"); |
39 String fn = mode + "." + type; | 39 String fn = mode + "." + type; |
40 | 40 |
41 resp.setHeader("Content-Disposition", "attachment;filename=" + fn); | 41 resp.setHeader("Content-Disposition", "attachment;filename=" + fn); |
42 | 42 |
43 System.out.println("Request " + type + " export."); | |
43 Document request = ClientProtocolUtils.newOutCollectionDocument( | 44 Document request = ClientProtocolUtils.newOutCollectionDocument( |
44 uuid, mode); | 45 uuid, mode, type); |
45 | 46 |
46 HttpClient client = new HttpClientImpl(serverUrl, locale); | 47 HttpClient client = new HttpClientImpl(serverUrl, locale); |
47 client.collectionOut(request, uuid, mode, out); | 48 client.collectionOut(request, uuid, mode, out); |
48 | 49 |
49 out.close(); | 50 out.close(); |