@Controller public class DefaultPageController extends AbstractPageController
Error handler to show a CMS managed error page. This is the catch-all controller that handles all GET requests that are not handled by other controllers.
  • Constructor Details

    • DefaultPageController

      public DefaultPageController()
  • Method Details

    • get

      @RequestMapping(value="/**", method=GET) public String get(org.springframework.ui.Model model, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws CMSItemNotFoundException
      Throws:
      CMSItemNotFoundException
    • getContentPageForRequest

      protected ContentPageModel getContentPageForRequest(javax.servlet.http.HttpServletRequest request)
      Lookup the CMS Content Page for this request.
      Parameters:
      request - The request
      Returns:
      the CMS content page