Package cc.concurrent.config.server.util

Examples of cc.concurrent.config.server.util.HtmlView


    @RequestMapping(value = "/{appName}/{fileName}/{newVersion}/diff/{oldVersion}", method = RequestMethod.GET)
    public String diff(@PathVariable("appName") String appName, @PathVariable("fileName") String fileName,
                             @PathVariable("newVersion") int newVersion,  @PathVariable("oldVersion") int oldVersion,
                             Model model) {
        checkArgument(newVersion > oldVersion, "newVersion must larger than oldVersion");
        HtmlView htmlView = fileService.diff(appName, fileName, newVersion, oldVersion);
        model.addAttribute("appName", appName);
        model.addAttribute("fileName", fileName);
        model.addAttribute("newVersion", newVersion);
        model.addAttribute("oldVersion", oldVersion);
        model.addAttribute("newHtml", htmlView.getNewHtml());
        model.addAttribute("oldHtml", htmlView.getOldHtml());
        return "diff";
    }
View Full Code Here

TOP

Related Classes of cc.concurrent.config.server.util.HtmlView

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.