java.lang.Object
com.semanticcms.core.servlet.BookUtils
Utilities for working with books.
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
getCanonicalBase
(ServletContext servletContext, HttpServletRequest request, Book book) Gets the canonical base URL, not including any trailing slash, such ashttps://example.com
This is configured in the book via the "canonicalBase" setting.
-
Method Details
-
getCanonicalBase
public static String getCanonicalBase(ServletContext servletContext, HttpServletRequest request, Book book) Gets the canonical base URL, not including any trailing slash, such ashttps://example.com
This is configured in the book via the "canonicalBase" setting.TODO: Create central per-request warnings list that could be reported during development mode, include this warning on requests. TODO: Also could use that for broken link detection instead of throwing exceptions.
-