comparison flys-client/src/main/java/de/intevation/flys/client/server/SetCollectionNameServiceImpl.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 private static final Logger logger = 21 private static final Logger logger =
22 Logger.getLogger(SetCollectionNameServiceImpl.class); 22 Logger.getLogger(SetCollectionNameServiceImpl.class);
23 23
24 24
25 public void setName(Collection c, String url) 25 public void setName(Collection c)
26 throws ServerException 26 throws ServerException
27 { 27 {
28 logger.info("Set name of collection: " + c.identifier()); 28 logger.info("Set name of collection: " + c.identifier());
29
30 String url = getServletContext().getInitParameter("server-url");
29 31
30 String name = c.getName(); 32 String name = c.getName();
31 Document set = ClientProtocolUtils.newSetCollectionNameDocument(name); 33 Document set = ClientProtocolUtils.newSetCollectionNameDocument(name);
32 34
33 doAction(c, set, url); 35 doAction(c, set, url);

http://dive4elements.wald.intevation.org