package eu.dnetlib.functionality.lightui.web;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

@Controller
public class LightuiImagesController {
	public static Log log = LogFactory
		.getLog(LightuiImagesController.class);
	
	@RequestMapping("cachedRepositoryImages.do")
	public String repositoryImages(ModelMap map,
			@RequestParam(value="url", required=true) String url) {
		log.info("cached repository images: " + url);
		
		map.addAttribute("url", url);
		
		return "cachedImageView";
	}
}
