Mercurial > hg > AnnotationManagerN4J
view src/main/java/de/mpiwg/itgroup/annotations/restlet/annotations_ui/InfoResource.java @ 50:64aa756c60cc
annotations ui can show and delete annotations now.
author | casties |
---|---|
date | Thu, 27 Sep 2012 17:12:08 +0200 |
parents | d22d01ba953a |
children | 2b1e6df5e21a |
line wrap: on
line source
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; } }