comparison flys-client/src/main/java/de/intevation/flys/client/server/SetCollectionTTLServiceImpl.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
23 23
24 24
25 public static final String XPATH_RESULT = "/art:result/text()"; 25 public static final String XPATH_RESULT = "/art:result/text()";
26 public static final String OPERATION_FAILURE = "FAILED"; 26 public static final String OPERATION_FAILURE = "FAILED";
27 27
28 public void setTTL(Collection c, String url) 28 public void setTTL(Collection c)
29 throws ServerException 29 throws ServerException
30 { 30 {
31 logger.info("Set ttl of collection: " + c.identifier()); 31 logger.info("Set ttl of collection: " + c.identifier());
32
33 String url = getServletContext().getInitParameter("server-url");
32 34
33 long ttl = c.getTTL(); 35 long ttl = c.getTTL();
34 String value = null; 36 String value = null;
35 37
36 if (ttl == 0) { 38 if (ttl == 0) {

http://dive4elements.wald.intevation.org