view src/main/java/de/mpiwg/itgroup/annotations/restlet/AnnotationStoreInfo.java @ 22:b1fb0d117877

adding and listing groups via html works now. no editing of group membership yet. no authentication yet.
author casties
date Thu, 20 Sep 2012 17:42:26 +0200
parents aafa3884b2c4
children
line wrap: on
line source

package de.mpiwg.itgroup.annotations.restlet;

import java.io.InputStream;

import org.restlet.data.MediaType;
import org.restlet.representation.InputRepresentation;
import org.restlet.representation.Representation;
import org.restlet.resource.Get;
import org.restlet.resource.ServerResource;


public class AnnotationStoreInfo extends ServerResource {

	@Get("html")
	public Representation getHTML(){
		InputStream is = getClass().getResourceAsStream("/de/mpiwg/itgroup/annotations/annotationstore-info.html");
		
		Representation rep = new InputRepresentation(is,MediaType.TEXT_HTML);
		return rep;
		
	}
	
}