comparison src/de/mpiwg/dwinter/fulltextSearchServer/Overview.java @ 0:db87c1b7eb6d

initial
author dwinter
date Wed, 03 Nov 2010 12:18:46 +0100
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:db87c1b7eb6d
1 package de.mpiwg.dwinter.fulltextSearchServer;
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.representation.StringRepresentation;
9 import org.restlet.resource.Directory;
10 import org.restlet.resource.ServerResource;
11 import org.restlet.resource.Get;
12
13 public class Overview extends ServerResource{
14
15 @Get("html")
16 public Representation getHtml(){
17
18 InputStream fs = getClass().getResourceAsStream("/de/mpiwg/dwinter/fulltextSearchServer/staticPages/searchPage.html");
19
20
21 Representation repr = new InputRepresentation(fs, MediaType.TEXT_HTML);
22 return repr;
23 }
24 }