teichmann@5861: /* Copyright (C) 2011, 2012, 2013 by Bundesanstalt für Gewässerkunde teichmann@5861: * Software engineering by Intevation GmbH teichmann@5861: * teichmann@5993: * This file is Free Software under the GNU AGPL (>=v3) teichmann@5861: * and comes with ABSOLUTELY NO WARRANTY! Check out the teichmann@5993: * documentation coming with Dive4Elements River for details. teichmann@5861: */ teichmann@5861: teichmann@5835: package org.dive4elements.river.client.server; raimund@245: ingo@1367: import org.apache.log4j.Logger; gernotbelger@9288: import org.dive4elements.river.client.client.services.WQInfoService; teichmann@5835: import org.dive4elements.river.client.shared.exceptions.ServerException; teichmann@5835: import org.dive4elements.river.client.shared.model.WQInfoObject; gernotbelger@9288: import org.w3c.dom.Document; raimund@245: raimund@245: /** raimund@245: * @author Ingo Weinzierl raimund@245: */ gernotbelger@9288: public class WQInfoServiceImpl extends AbstractMainValuesServiceImpl implements WQInfoService { gernotbelger@9288: private static final long serialVersionUID = 1L; raimund@245: gernotbelger@9288: private static final Logger log = Logger.getLogger(WQInfoServiceImpl.class); raimund@245: gernotbelger@9288: @Override gernotbelger@9288: public WQInfoObject[] getWQInfo(final String locale, final String river, final double from, final double to) throws ServerException { teichmann@8203: log.info("WQInfoServiceImpl.getWQInfo"); raimund@245: gernotbelger@9288: final Document input = createInput(river, from, to, null, null); raimund@245: gernotbelger@9288: return callService("mainvalues", input, locale); raimund@245: } gernotbelger@9288: }