annotate src/main/java/de/mpiwg/itgroup/annotations/restlet/AnnotatorInfo.java @ 41:5d4260344db5

Merge with 21c5394ea0cbb6738016a3c7d03b5ce7943d6216
author casties
date Wed, 26 Sep 2012 14:59:00 +0200
parents aafa3884b2c4
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