Mercurial > dive4elements > river
comparison flys-client/src/main/java/de/intevation/flys/client/server/UserCollectionsServiceImpl.java @ 229:924da6695800
Each service is now called with the name of the current locale to set the request object's locale manually in the HttpClient.
flys-client/trunk@1681 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Ingo Weinzierl <ingo.weinzierl@intevation.de> |
---|---|
date | Thu, 14 Apr 2011 07:53:01 +0000 |
parents | 261a2ee7d9bb |
children | 53ad6dd2cb2b |
comparison
equal
deleted
inserted
replaced
228:bbe32496dc84 | 229:924da6695800 |
---|---|
34 */ | 34 */ |
35 public class UserCollectionsServiceImpl | 35 public class UserCollectionsServiceImpl |
36 extends RemoteServiceServlet | 36 extends RemoteServiceServlet |
37 implements UserCollectionsService | 37 implements UserCollectionsService |
38 { | 38 { |
39 public Collection[] getUserCollections(String serverUrl, String userid) { | 39 public Collection[] getUserCollections( |
40 String serverUrl, | |
41 String locale, | |
42 String userid) | |
43 { | |
40 System.out.println("UserCollectionsServiceImpl.getUserCollections"); | 44 System.out.println("UserCollectionsServiceImpl.getUserCollections"); |
41 | 45 |
42 HttpClient client = new HttpClientImpl(serverUrl); | 46 HttpClient client = new HttpClientImpl(serverUrl, locale); |
43 | 47 |
44 try { | 48 try { |
45 Document result = client.listUserCollections(userid); | 49 Document result = client.listUserCollections(userid); |
46 | 50 |
47 NodeList list = (NodeList) XMLUtils.xpath( | 51 NodeList list = (NodeList) XMLUtils.xpath( |