Mercurial > dive4elements > river
diff flys-client/src/main/java/de/intevation/flys/client/server/ArtifactServiceImpl.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 | fba76f4afca9 |
line wrap: on
line diff
--- a/flys-client/src/main/java/de/intevation/flys/client/server/ArtifactServiceImpl.java Thu Dec 08 08:06:11 2011 +0000 +++ b/flys-client/src/main/java/de/intevation/flys/client/server/ArtifactServiceImpl.java Thu Dec 08 09:12:27 2011 +0000 @@ -28,14 +28,12 @@ * Creates new Artifacts based on a given Recommendation and factory. * <b>Note, that all the work is done in ArtifactHelper!</b> * - * @param serverUrl The URL of the ArtifactServer. * @param locale The locale used for HTTP request. * @param factory The factory that is used to create the new Artifact. * * @return a new Artifact. */ public Artifact create( - String serverUrl, String locale, String factory, Recommendation recom @@ -44,7 +42,9 @@ { logger.info("ArtifactServiceImpl.create"); - return ArtifactHelper.createArtifact(serverUrl, locale, factory, recom); + String url = getServletContext().getInitParameter("server-url"); + + return ArtifactHelper.createArtifact(url, locale, factory, recom); } } // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 :