source: AnnotationManagerN4J/src/main/java/de/mpiwg/itgroup/annotations/restlet/annotations_ui/InfoResource.java @ 23:d22d01ba953a

Last change on this file since 23:d22d01ba953a was 23:d22d01ba953a, checked in by casties, 12 years ago

reorganised code for annotations and groups ui. work in progress.

File size: 620 bytes
Line 
1package de.mpiwg.itgroup.annotations.restlet.annotations_ui;
2
3import java.io.InputStream;
4
5import org.restlet.data.MediaType;
6import org.restlet.representation.InputRepresentation;
7import org.restlet.representation.Representation;
8import org.restlet.resource.Get;
9import org.restlet.resource.ServerResource;
10
11
12public class InfoResource 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
Note: See TracBrowser for help on using the repository browser.