public final class BookUtils extends Object
Utilities for working with books.
  • Method Details

    • getCanonicalBase

      public static String getCanonicalBase(ServletContext servletContext, HttpServletRequest request, Book book)
      Gets the canonical base URL, not including any trailing slash, such as 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.