comparison artifact-database/src/main/java/de/intevation/artifactdatabase/rest/ServiceResource.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 d348fe1fd822
comparison
equal deleted inserted replaced
87:0f48188a6e02 88:69c84cf7c5d7
18 import org.w3c.dom.Document; 18 import org.w3c.dom.Document;
19 19
20 import java.io.IOException; 20 import java.io.IOException;
21 21
22 /** 22 /**
23 * Resource to process incoming XML documents with a given service.
24 *
23 * @author <a href="mailto:sascha.teichmann@intevation">Sascha L. Teichmann</a> 25 * @author <a href="mailto:sascha.teichmann@intevation">Sascha L. Teichmann</a>
24 */ 26 */
25 public class ServiceResource 27 public class ServiceResource
26 extends BaseResource 28 extends BaseResource
27 { 29 {
28 private static Logger logger = Logger.getLogger(ServiceResource.class); 30 private static Logger logger = Logger.getLogger(ServiceResource.class);
29 31
32 /**
33 * server URL where to reach the resource.
34 */
30 public static final String PATH = "/service/{service}"; 35 public static final String PATH = "/service/{service}";
31 36
37 /**
38 * Error message if no corresponing service is provided by
39 * the artifact database.
40 */
32 public static final String NO_SUCH_ACTION_MESSAGE = "no such service"; 41 public static final String NO_SUCH_ACTION_MESSAGE = "no such service";
33 42
34 protected Representation innerPost(Representation requestRepr) { 43 protected Representation innerPost(Representation requestRepr) {
35 44
36 Document inputDocument = null; 45 Document inputDocument = null;

http://dive4elements.wald.intevation.org