comparison flys-client/src/main/java/de/intevation/flys/client/server/DescribeCollectionServiceImpl.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 e02f50a3ad59
children d01b0d81b92a
comparison
equal deleted inserted replaced
228:bbe32496dc84 229:924da6695800
45 * describe() a Collection.*/ 45 * describe() a Collection.*/
46 public static final String ERROR_DESCRIBE_COLLECTION = 46 public static final String ERROR_DESCRIBE_COLLECTION =
47 "error_describe_collection"; 47 "error_describe_collection";
48 48
49 49
50 public Collection describe(String uuid, String serverUrl) 50 public Collection describe(String uuid, String serverUrl, String locale)
51 throws ServerException 51 throws ServerException
52 { 52 {
53 System.out.println("DescribeCollectionServiceImpl.describe"); 53 System.out.println("DescribeCollectionServiceImpl.describe");
54 54
55 Document describe = ClientProtocolUtils.newDescribeCollectionDocument( 55 Document describe = ClientProtocolUtils.newDescribeCollectionDocument(
56 uuid); 56 uuid);
57 57
58 HttpClient client = new HttpClientImpl(serverUrl); 58 HttpClient client = new HttpClientImpl(serverUrl, locale);
59 59
60 try { 60 try {
61 Document response = (Document) client.doCollectionAction( 61 Document response = (Document) client.doCollectionAction(
62 describe, uuid, new DocumentResponseHandler()); 62 describe, uuid, new DocumentResponseHandler());
63 63

http://dive4elements.wald.intevation.org