comparison artifact-database/src/main/java/de/intevation/artifactdatabase/rest/RestApp.java @ 29:22b03d5c84c5

Added REST out handler for artifacts reachable via HTTP GET '/artifact/{uuid}/{type}'. artifacts/trunk@69 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Sascha L. Teichmann <sascha.teichmann@intevation.de>
date Thu, 10 Sep 2009 15:49:17 +0000
parents 75bdaf900473
children b01e47317a78
comparison
equal deleted inserted replaced
28:019b9f02d523 29:22b03d5c84c5
33 ConcurrentMap map = context.getAttributes(); 33 ConcurrentMap map = context.getAttributes();
34 map.put("database", database); 34 map.put("database", database);
35 35
36 Router router = new Router(context); 36 Router router = new Router(context);
37 37
38 router.attach(FactoriesResource.PATH, FactoriesResource.class); 38 router.attach(FactoriesResource.PATH, FactoriesResource.class);
39 router.attach(CreateResource.PATH, CreateResource.class); 39 router.attach(CreateResource.PATH, CreateResource.class);
40 router.attach(ArtifactResource.PATH, ArtifactResource.class); 40 router.attach(ArtifactResource.PATH, ArtifactResource.class);
41 router.attach(ArtifactOutResource.PATH, ArtifactOutResource.class);
41 42
42 return router; 43 return router;
43 } 44 }
44 } 45 }
45 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8: 46 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8:

http://dive4elements.wald.intevation.org