diff artifact-database/src/main/java/de/intevation/artifactdatabase/rest/ArtifactOutResource.java @ 88:69c84cf7c5d7

Added javadoc to the REST package of the artifact database (complete). artifacts/trunk@840 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Sascha L. Teichmann <sascha.teichmann@intevation.de>
date Fri, 26 Mar 2010 15:05:11 +0000
parents 48d1a9a082c2
children e27cf9c84eb8
line wrap: on
line diff
--- a/artifact-database/src/main/java/de/intevation/artifactdatabase/rest/ArtifactOutResource.java	Fri Mar 26 11:40:28 2010 +0000
+++ b/artifact-database/src/main/java/de/intevation/artifactdatabase/rest/ArtifactOutResource.java	Fri Mar 26 15:05:11 2010 +0000
@@ -25,20 +25,31 @@
 import java.io.IOException;
 
 /**
+ * Resource to serve the out()-outputs of artifacts.
  * @author <a href="mailto:sascha.teichmann@intevation">Sascha L. Teichmann</a>
  */
 public class ArtifactOutResource
 extends      BaseResource
 {
+    /**
+     * server URL where to find the resource.
+     */
     public static final String PATH = "/artifact/{uuid}/{type}";
 
+    /**
+     * XPath to figure out the MIME type of the requested result.
+     */
     public static final String XPATH_MIME_TYPE = "/art:action/art:out/art:mime-type/@value";
 
+    /**
+     * Default result MIME type: octet stream
+     */
     public static final MediaType DEFAULT_MIME_TYPE =
         MediaType.APPLICATION_OCTET_STREAM;
 
     private static Logger logger = Logger.getLogger(ArtifactOutResource.class);
 
+    @Override
     protected Representation innerPost(Representation requestRepr)
     throws    ResourceException
     {
@@ -95,4 +106,4 @@
         }
     }
 }
-// vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8:
+// vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 :

http://dive4elements.wald.intevation.org