Mercurial > hg > AnnotationManagerN4J
diff 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 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/main/java/de/mpiwg/itgroup/annotations/restlet/annotations_ui/InfoResource.java Sat Sep 22 20:12:18 2012 +0200 @@ -0,0 +1,24 @@ +package de.mpiwg.itgroup.annotations.restlet.annotations_ui; + +import java.io.InputStream; + +import org.restlet.data.MediaType; +import org.restlet.representation.InputRepresentation; +import org.restlet.representation.Representation; +import org.restlet.resource.Get; +import org.restlet.resource.ServerResource; + + +public class InfoResource extends ServerResource { + + @Get("html") + public Representation getHTML(){ + InputStream is = getClass().getResourceAsStream("/de/mpiwg/itgroup/annotations/annotationstore-info.html"); + + Representation rep = new InputRepresentation(is,MediaType.TEXT_HTML); + return rep; + + } + +} +