package iaas.uni.stuttgart.de.prosit.resources;

import javax.ws.rs.Path;
import javax.ws.rs.core.Response;

import org.glassfish.jersey.server.mvc.Viewable;

/**
 * 
 * @author Kalman Kepes - kepeskn@studi.informatik.uni-stuttgart.de
 *
 */
@Path("/")
public class RootResource extends AbstractResource {

	@Override
	public Response getHTMLView() {
		return Response.ok(new Viewable("index")).build();
	}

	@Path("/upload")
	public UploadResource getUploadResource() {
		return new UploadResource();
	}

	@Path("/process")
	public ProcessListResource getProcessListResource() {
		return new ProcessListResource();
	}

	@Path("/fragment")
	public FragmentListResource getFragmentListResource() {
		return new FragmentListResource();
	}

	@Path("/fragmented")
	public FragmentedProcessListResource getFragmentedProcessesListResource() {
		return new FragmentedProcessListResource();
	}
}
