comparison flys-client/src/main/java/de/intevation/flys/client/server/FLYSArtifactCreator.java @ 14:fe2f4d1dd784

Integrated the httpclient for the communication between client and server. It is now possible to create a new WINFO artifact. flys-client/trunk@1326 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Ingo Weinzierl <ingo.weinzierl@intevation.de>
date Thu, 17 Feb 2011 11:52:55 +0000
parents
children f8a5f2c5e2b7
comparison
equal deleted inserted replaced
13:8d9075c07667 14:fe2f4d1dd784
1 package de.intevation.flys.client.server;
2
3 import org.w3c.dom.Document;
4
5 import de.intevation.artifacts.httpclient.utils.ArtifactCreator;
6
7 import de.intevation.flys.client.shared.model.Artifact;
8 import de.intevation.flys.client.shared.model.DefaultArtifact;
9
10
11 /**
12 * An implementation of an {@link ArtifactCreator}. This class uses the document
13 * that is returned by the artifact server to parse important information (like
14 * uuid, hash) and returns a new {@link Artifact} instance.
15 *
16 * @author <a href="mailto:ingo.weinzierl@intevation.de">Ingo Weinzierl</a>
17 */
18 public class FLYSArtifactCreator implements ArtifactCreator {
19
20 /**
21 * Creates a new instance of an {@link ArtifactCreator}.
22 */
23 public FLYSArtifactCreator() {
24 }
25
26
27 /**
28 * This concreate implementation returns an instance of {@link Artifact}
29 * that is used in the FLYS GWT Client code.
30 *
31 * @param doc A document that describes the artifact that has been created
32 * in the artifact server.
33 *
34 * @return an instance if {@link Artifact}.
35 */
36 public Object create(Document doc) {
37 return new DefaultArtifact("TODO-UUID", "TODO-HASH");
38 }
39 }
40 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 :

http://dive4elements.wald.intevation.org