Mercurial > hg > fulltextSearchServer
view src/de/mpiwg/dwinter/fulltextSearchServer/Overview.java @ 2:eef69274ef15 default tip
bugs
author | dwinter |
---|---|
date | Wed, 26 Jan 2011 16:36:21 +0100 |
parents | db87c1b7eb6d |
children |
line wrap: on
line source
package de.mpiwg.dwinter.fulltextSearchServer; import java.io.InputStream; import org.restlet.data.MediaType; import org.restlet.representation.InputRepresentation; import org.restlet.representation.Representation; import org.restlet.representation.StringRepresentation; import org.restlet.resource.Directory; import org.restlet.resource.ServerResource; import org.restlet.resource.Get; public class Overview extends ServerResource{ @Get("html") public Representation getHtml(){ InputStream fs = getClass().getResourceAsStream("/de/mpiwg/dwinter/fulltextSearchServer/staticPages/searchPage.html"); Representation repr = new InputRepresentation(fs, MediaType.TEXT_HTML); return repr; } }