diff flys-client/src/main/java/de/intevation/flys/client/server/StepForwardServiceImpl.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 d0a9acddbea2
line wrap: on
line diff
--- a/flys-client/src/main/java/de/intevation/flys/client/server/StepForwardServiceImpl.java	Thu Dec 08 08:06:11 2011 +0000
+++ b/flys-client/src/main/java/de/intevation/flys/client/server/StepForwardServiceImpl.java	Thu Dec 08 09:12:27 2011 +0000
@@ -53,18 +53,19 @@
      * This method wraps the artifact operations FEED and ADVANCE. FEED is
      * always triggerd, ADVANCE only, if there is at least one reachable state.
      *
-     * @param url The url of the artifact server.
      * @param locale The locale used for the request.
      * @param artifact The artifact that needs to be fed.
      * @param data An array of Data objects that contain the information that
      *
      * @return the modified artifact.
      */
-    public Artifact go(String url, String locale, Artifact artifact, Data[] data)
+    public Artifact go(String locale, Artifact artifact, Data[] data)
     throws ServerException
     {
         logger.info("StepForwardServiceImpl.go");
 
+        String url = getServletContext().getInitParameter("server-url");
+
         Artifact afterFeed = feed(url, locale, artifact, data);
 
         if (afterFeed == null) {
@@ -82,7 +83,7 @@
 
         // We use the first reachable state as default target, maybe we need to
         // change this later.
-        return advance(url, locale, afterFeed, reachable[0]);
+        return advance(locale, afterFeed, reachable[0]);
     }
 
 

http://dive4elements.wald.intevation.org