Mercurial > dive4elements > river
comparison flys-client/src/main/java/de/intevation/flys/client/server/GetArtifactServiceImpl.java @ 1425:bc06a671ef60
Removed the URL parameter from service calls. The service
implementations read the URL from the web.xml config file now.
flys-client/trunk@3367 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Raimund Renkert <raimund.renkert@intevation.de> |
---|---|
date | Thu, 08 Dec 2011 09:12:27 +0000 |
parents | ab8eb2f544f2 |
children |
comparison
equal
deleted
inserted
replaced
1424:8974e220b193 | 1425:bc06a671ef60 |
---|---|
41 | 41 |
42 public static final String OPERATION_FAILURE = "FAILED"; | 42 public static final String OPERATION_FAILURE = "FAILED"; |
43 | 43 |
44 | 44 |
45 public Artifact getArtifact( | 45 public Artifact getArtifact( |
46 String url, | |
47 String locale, | 46 String locale, |
48 String uuid, | 47 String uuid, |
49 String hash) | 48 String hash) |
50 throws ServerException | 49 throws ServerException |
51 { | 50 { |
52 logger.info("GetArtifactServiceImpl.getArtifact"); | 51 logger.info("GetArtifactServiceImpl.getArtifact"); |
52 | |
53 String url = getServletContext().getInitParameter("server-url"); | |
53 | 54 |
54 Document describe = ClientProtocolUtils.newDescribeDocument( | 55 Document describe = ClientProtocolUtils.newDescribeDocument( |
55 uuid, hash, true); | 56 uuid, hash, true); |
56 | 57 |
57 HttpClient client = new HttpClientImpl(url, locale); | 58 HttpClient client = new HttpClientImpl(url, locale); |