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

initial
author dwinter
date Wed, 03 Nov 2010 12:18:46 +0100
parents
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;
	}
}