Mercurial > dive4elements > river
comparison flys-client/src/main/java/de/intevation/flys/client/server/AdvanceServiceImpl.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 | ab8eb2f544f2 |
comparison
equal
deleted
inserted
replaced
228:bbe32496dc84 | 229:924da6695800 |
---|---|
32 public static final String OPERATION_FAILURE = "FAILED"; | 32 public static final String OPERATION_FAILURE = "FAILED"; |
33 | 33 |
34 public static final String ERROR_ADVANCE_ARTIFACT = "error_advance_artifact"; | 34 public static final String ERROR_ADVANCE_ARTIFACT = "error_advance_artifact"; |
35 | 35 |
36 | 36 |
37 public Artifact advance(String serverUrl, Artifact artifact, String target) | 37 public Artifact advance( |
38 String serverUrl, | |
39 String locale, | |
40 Artifact artifact, | |
41 String target) | |
38 throws ServerException | 42 throws ServerException |
39 { | 43 { |
44 System.out.println("AdvanceServiceImpl.advance"); | |
45 | |
40 Document advance = ClientProtocolUtils.newAdvanceDocument( | 46 Document advance = ClientProtocolUtils.newAdvanceDocument( |
41 artifact.getUuid(), | 47 artifact.getUuid(), |
42 artifact.getHash(), | 48 artifact.getHash(), |
43 target); | 49 target); |
44 | 50 |
45 HttpClient client = new HttpClientImpl(serverUrl); | 51 HttpClient client = new HttpClientImpl(serverUrl, locale); |
46 | 52 |
47 try { | 53 try { |
48 Document description = (Document) client.advance( | 54 Document description = (Document) client.advance( |
49 new de.intevation.artifacts.httpclient.objects.Artifact( | 55 new de.intevation.artifacts.httpclient.objects.Artifact( |
50 artifact.getUuid(), | 56 artifact.getUuid(), |