annotate src/main/java/de/mpiwg/itgroup/annotations/restlet/AnnotatorInfo.java @ 18:aafa3884b2c4

new AnnotationStore restlet for HTML-UI. reorganisation of classes.
author casties
date Wed, 05 Sep 2012 18:05:54 +0200
parents f2d44c41eedf
children 2b1e6df5e21a
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1
6556943c4fb9 include neo4j and restlet
casties
parents:
diff changeset
1 package de.mpiwg.itgroup.annotations.restlet;
6556943c4fb9 include neo4j and restlet
casties
parents:
diff changeset
2
6556943c4fb9 include neo4j and restlet
casties
parents:
diff changeset
3 import java.io.InputStream;
6556943c4fb9 include neo4j and restlet
casties
parents:
diff changeset
4
6556943c4fb9 include neo4j and restlet
casties
parents:
diff changeset
5 import org.restlet.data.MediaType;
6556943c4fb9 include neo4j and restlet
casties
parents:
diff changeset
6 import org.restlet.representation.InputRepresentation;
6556943c4fb9 include neo4j and restlet
casties
parents:
diff changeset
7 import org.restlet.representation.Representation;
6556943c4fb9 include neo4j and restlet
casties
parents:
diff changeset
8 import org.restlet.resource.Get;
6556943c4fb9 include neo4j and restlet
casties
parents:
diff changeset
9 import org.restlet.resource.ServerResource;
6556943c4fb9 include neo4j and restlet
casties
parents:
diff changeset
10
6556943c4fb9 include neo4j and restlet
casties
parents:
diff changeset
11
6556943c4fb9 include neo4j and restlet
casties
parents:
diff changeset
12 public class AnnotatorInfo extends ServerResource {
6556943c4fb9 include neo4j and restlet
casties
parents:
diff changeset
13
6556943c4fb9 include neo4j and restlet
casties
parents:
diff changeset
14 @Get("html")
6556943c4fb9 include neo4j and restlet
casties
parents:
diff changeset
15 public Representation getHTML(){
2
f2d44c41eedf nothing much
casties
parents: 1
diff changeset
16 InputStream is = getClass().getResourceAsStream("/de/mpiwg/itgroup/annotations/annotator-info.html");
1
6556943c4fb9 include neo4j and restlet
casties
parents:
diff changeset
17
6556943c4fb9 include neo4j and restlet
casties
parents:
diff changeset
18 Representation rep = new InputRepresentation(is,MediaType.TEXT_HTML);
6556943c4fb9 include neo4j and restlet
casties
parents:
diff changeset
19 return rep;
6556943c4fb9 include neo4j and restlet
casties
parents:
diff changeset
20
6556943c4fb9 include neo4j and restlet
casties
parents:
diff changeset
21 }
6556943c4fb9 include neo4j and restlet
casties
parents:
diff changeset
22
6556943c4fb9 include neo4j and restlet
casties
parents:
diff changeset
23 }
6556943c4fb9 include neo4j and restlet
casties
parents:
diff changeset
24