Mercurial > hg > AnnotationManagerN4J
comparison src/main/java/de/mpiwg/itgroup/annotations/restlet/annotations_ui/InfoResource.java @ 23:d22d01ba953a
reorganised code for annotations and groups ui. work in progress.
author | casties |
---|---|
date | Sat, 22 Sep 2012 20:12:18 +0200 |
parents | src/main/java/de/mpiwg/itgroup/annotations/restlet/AnnotationStoreInfo.java@aafa3884b2c4 |
children | 2b1e6df5e21a |
comparison
equal
deleted
inserted
replaced
22:b1fb0d117877 | 23:d22d01ba953a |
---|---|
1 package de.mpiwg.itgroup.annotations.restlet.annotations_ui; | |
2 | |
3 import java.io.InputStream; | |
4 | |
5 import org.restlet.data.MediaType; | |
6 import org.restlet.representation.InputRepresentation; | |
7 import org.restlet.representation.Representation; | |
8 import org.restlet.resource.Get; | |
9 import org.restlet.resource.ServerResource; | |
10 | |
11 | |
12 public class InfoResource extends ServerResource { | |
13 | |
14 @Get("html") | |
15 public Representation getHTML(){ | |
16 InputStream is = getClass().getResourceAsStream("/de/mpiwg/itgroup/annotations/annotationstore-info.html"); | |
17 | |
18 Representation rep = new InputRepresentation(is,MediaType.TEXT_HTML); | |
19 return rep; | |
20 | |
21 } | |
22 | |
23 } | |
24 |