Class WebpageHtmlController


  • @Controller
    @Api(description="The webpage HTML controller",
         name="Webpage HTML controller")
    public class WebpageHtmlController
    extends Object
    • Constructor Detail

      • WebpageHtmlController

        public WebpageHtmlController()
    • Method Detail

      • getWebpageAsHtml

        @ApiMethod(description="Get a webpage as HTML")
        @GetMapping(value={"/latest/webpages/{uuid}.html","/v3/webpages/{uuid}.html","/v2/webpages/{uuid}.html","/v1/webpages/{uuid}.html"},
                    produces="text/html")
        public String getWebpageAsHtml​(@ApiPathParam(description="UUID of the webpage, e.g. <tt>599a120c-2dd5-11e8-b467-0ed5f89f718b</tt>") @PathVariable("uuid")
                                       UUID uuid,
                                       @ApiQueryParam(name="pLocale",description="Desired locale, e.g. <tt>de_DE</tt>. If unset, contents in all languages will be returned") @RequestParam(name="pLocale",required=false)
                                       Locale pLocale,
                                       @ApiQueryParam(name="renderLabel",description="Switch for (de)activating rendering of webpage label. If \'false\', label rendering will be skipped") @RequestParam(name="renderLabel",required=false,defaultValue="true")
                                       String renderLabel,
                                       org.springframework.ui.Model model)
                                throws IdentifiableServiceException
        Throws:
        IdentifiableServiceException