Project

General

Profile

« Previous | Next » 

Revision 49368

datasets

View differences:

EnrichLabsPlugin.java
20 20
import org.dom4j.Element;
21 21
import org.dom4j.Node;
22 22
import org.dom4j.io.SAXReader;
23
import org.springframework.beans.factory.annotation.Value;
23 24

  
24 25
import com.google.common.base.Splitter;
25 26
import com.google.common.collect.Lists;
......
40 41

  
41 42
	private static final Log log = LogFactory.getLog(EnrichLabsPlugin.class);
42 43

  
44
	@Value("${plugin.enrich.labs.pimpa.url}")
45
	private String serviceUrl;
46

  
43 47
	@SuppressWarnings("unchecked")
44 48
	@Override
45 49
	public void process(final MongoMDStore store, final Map<String, String> params) throws MDStoreServiceException {
......
210 214
	private DataRange findDataRange(final int from, final int to) {
211 215
		final JaxWsProxyFactoryBean factory = new JaxWsProxyFactoryBean();
212 216
		factory.setServiceClass(PimpaService.class);
213
		factory.setAddress("http://pimpa.isti.cnr.it/PERSONALE/web-services/iop/iop.webservice.php");
217
		factory.setAddress(serviceUrl);
214 218
		final PimpaService pimpaService = (PimpaService) factory.create();
215 219
		return pimpaService.getDataRange(from, to);
216 220
	}

Also available in: Unified diff