Mercurial > dive4elements > river
comparison flys-client/src/main/java/de/intevation/flys/client/server/AddArtifactServiceImpl.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 |
---|---|
20 | 20 |
21 | 21 |
22 public Collection add( | 22 public Collection add( |
23 Collection collection, | 23 Collection collection, |
24 Artifact artifact, | 24 Artifact artifact, |
25 String url, | |
26 String locale) | 25 String locale) |
27 throws ServerException | 26 throws ServerException |
28 { | 27 { |
29 logger.info("AddArtifactServiceImpl.add"); | 28 logger.info("AddArtifactServiceImpl.add"); |
29 String url = getServletContext().getInitParameter("server-url"); | |
30 | 30 |
31 return CollectionHelper.addArtifact(collection, artifact, url, locale); | 31 return CollectionHelper.addArtifact(collection, artifact, url, locale); |
32 } | 32 } |
33 } | 33 } |
34 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 : | 34 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 : |