comparison flys-client/src/main/java/de/intevation/flys/client/server/FeedServiceImpl.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 e8706fec0ee9
comparison
equal deleted inserted replaced
1424:8974e220b193 1425:bc06a671ef60
47 47
48 48
49 /** 49 /**
50 * This method triggers the FEED operation. 50 * This method triggers the FEED operation.
51 * 51 *
52 * @param url The url of the artifact server.
53 * @param artifact The artifact that needs to be fed. 52 * @param artifact The artifact that needs to be fed.
54 * @param data An array of Data objects that contain the information that 53 * @param data An array of Data objects that contain the information that
55 * are used for the FEED operation. 54 * are used for the FEED operation.
56 * 55 *
57 * @return a new artifact parsed from the description of FEED. 56 * @return a new artifact parsed from the description of FEED.
58 */ 57 */
59 public Artifact feed( 58 public Artifact feed(
60 String url,
61 String locale, 59 String locale,
62 Artifact artifact, 60 Artifact artifact,
63 Data[] data) 61 Data[] data)
64 throws ServerException 62 throws ServerException
65 { 63 {
66 logger.info("StepForwardServiceImpl.feed"); 64 logger.info("StepForwardServiceImpl.feed");
65
66 String url = getServletContext().getInitParameter("server-url");
67 67
68 Document feed = ClientProtocolUtils.newFeedDocument( 68 Document feed = ClientProtocolUtils.newFeedDocument(
69 artifact.getUuid(), 69 artifact.getUuid(),
70 artifact.getHash(), 70 artifact.getHash(),
71 createKVP(data)); 71 createKVP(data));

http://dive4elements.wald.intevation.org