Mercurial > dive4elements > framework
view artifact-database/src/main/java/de/intevation/artifactdatabase/DefaultArtifact.java @ 27:75bdaf900473
Added REST handler for 'describe'.
artifacts/trunk@64 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Thu, 10 Sep 2009 14:21:58 +0000 |
parents | 83a059c204f8 |
children | c4d85a8532d1 |
line wrap: on
line source
package de.intevation.artifactdatabase; import org.w3c.dom.Document; import de.intevation.artifacts.Artifact; import de.intevation.artifacts.ArtifactFactory; import org.apache.log4j.Logger; /** * @author Sascha L. Teichmann (sascha.teichmann@intevation.de) */ public class DefaultArtifact implements Artifact { private static Logger logger = Logger.getLogger(DefaultArtifact.class); protected String identifier; public DefaultArtifact() { } public String identifier() { return this.identifier; } public String hash() { return String.valueOf(hashCode()); } public Document describe(Object context) { return XMLUtils.newDocument(); } public Document advance(Document target, Object context) { return XMLUtils.newDocument(); } public Document feed(Document target, Object context) { return XMLUtils.newDocument(); } public byte [] out(Document format, Object context) { return new byte[0]; } public void setup(String identifier, ArtifactFactory factory, Object context) { this.identifier = identifier; } public void endOfLife(Object context) { } } // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8: