Mercurial > hg > AnnotationManagerN4J
view src/main/java/de/mpiwg/itgroup/annotations/restlet/AnnotatorInfo.java @ 68:39bc52f9b102
(hopefully) fixed issues with neo4j 2.0 transactions.
author | casties |
---|---|
date | Sat, 22 Feb 2014 07:12:37 -0800 |
parents | aafa3884b2c4 |
children | 2b1e6df5e21a |
line wrap: on
line source
package de.mpiwg.itgroup.annotations.restlet; 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 AnnotatorInfo extends ServerResource { @Get("html") public Representation getHTML(){ InputStream is = getClass().getResourceAsStream("/de/mpiwg/itgroup/annotations/annotator-info.html"); Representation rep = new InputRepresentation(is,MediaType.TEXT_HTML); return rep; } }