Java API for modeling web page content and relationships in a Servlet environment.
public final class BookUtils extends Object
|Modifier and Type||Method and Description|
Gets the canonical base URL, not including any trailing slash, such as
public static String getCanonicalBase(ServletContext servletContext, HttpServletRequest request, Book book) throws MalformedURLException
https://example.comThis 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.
Copyright © 2013–2020 AO Industries, Inc.. All rights reserved.