18
|
1 package de.mpiwg.itgroup.annotations.restlet;
|
|
2
|
|
3 import java.io.InputStream;
|
|
4
|
|
5 import org.restlet.data.MediaType;
|
|
6 import org.restlet.representation.InputRepresentation;
|
|
7 import org.restlet.representation.Representation;
|
|
8 import org.restlet.resource.Get;
|
|
9 import org.restlet.resource.ServerResource;
|
|
10
|
|
11
|
|
12 public class AnnotationStoreInfo extends ServerResource {
|
|
13
|
|
14 @Get("html")
|
|
15 public Representation getHTML(){
|
|
16 InputStream is = getClass().getResourceAsStream("/de/mpiwg/itgroup/annotations/annotationstore-info.html");
|
|
17
|
|
18 Representation rep = new InputRepresentation(is,MediaType.TEXT_HTML);
|
|
19 return rep;
|
|
20
|
|
21 }
|
|
22
|
|
23 }
|
|
24
|