Mercurial > dive4elements > river
diff flys-client/src/main/java/de/intevation/flys/client/server/LoadArtifactServiceImpl.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 | 0d3bbe4240b1 |
children | 4a6814be92ba |
line wrap: on
line diff
--- a/flys-client/src/main/java/de/intevation/flys/client/server/LoadArtifactServiceImpl.java Thu Dec 08 08:06:11 2011 +0000 +++ b/flys-client/src/main/java/de/intevation/flys/client/server/LoadArtifactServiceImpl.java Thu Dec 08 09:12:27 2011 +0000 @@ -38,20 +38,20 @@ * @param parent collection to add recommendation to. * @param recom recommendation to create clone for. * @param factory factory to use. - * @param url servers url. * @param locale the locale to translate messages. */ public Artifact load( Collection parent, Recommendation recom, String factory, - String url, String locale ) throws ServerException { logger.info( "LoadArtifactServiceImpl.load: " + recom.getMasterArtifact()); + String url = getServletContext().getInitParameter("server-url"); + // 1) Clone the Artifact specified in >>recom<< Artifact clone = ArtifactHelper.createArtifact( url, locale, factory, recom); @@ -81,7 +81,6 @@ * @param factory name of factory to use when cloning artifacts (can be * null in which case the recommendations getFactory() will * be used. - * @param url servers url. * @param locale the locale to translate messages. * * @return cloned artifacts (same artifact might be contained multiple