Mercurial > dive4elements > river
view flys-client/src/main/java/de/intevation/flys/client/server/ArtifactServiceImpl.java @ 55:4439f642f632
Read min/max values for the distance mode in the LocationDistancePanel.
flys-client/trunk@1511 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Ingo Weinzierl <ingo.weinzierl@intevation.de> |
---|---|
date | Fri, 18 Mar 2011 08:45:25 +0000 |
parents | fe2f4d1dd784 |
children | e02f50a3ad59 |
line wrap: on
line source
package de.intevation.flys.client.server; import org.w3c.dom.Document; import com.google.gwt.user.server.rpc.RemoteServiceServlet; import de.intevation.artifacts.common.utils.ClientProtocolUtils; import de.intevation.artifacts.httpclient.exceptions.ConnectionException; import de.intevation.artifacts.httpclient.http.HttpClient; import de.intevation.artifacts.httpclient.http.HttpClientImpl; import de.intevation.flys.client.shared.model.Artifact; import de.intevation.flys.client.client.services.ArtifactService; /** * This interface provides artifact specific services as CREATE, DESCRIBE, FEED, * ADVANCE and OUT. * * @author <a href="mailto:ingo.weinzierl@intevation.de">Ingo Weinzierl</a> */ public class ArtifactServiceImpl extends RemoteServiceServlet implements ArtifactService { public Artifact create(String serverUrl, String factory) { Document create = ClientProtocolUtils.newCreateDocument(factory); HttpClient client = new HttpClientImpl(serverUrl); try { return (Artifact) client.create(create, new FLYSArtifactCreator()); } catch (ConnectionException ce) { System.err.println(ce.getLocalizedMessage()); } return null; } } // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 :