Interface ContentGenerator

  • public interface ContentGenerator
    Interface for creating the content of a newsletter.
    • Method Detail

      • createHTML

        String createHTML​(SlingHttpServletRequest request,
                          SlingHttpServletResponse response)
                   throws NewsletterException

        Creates the HTML of the newsletter page.

        The HTML must use full URLs for images, links, etc.

        The provided response must not be used to do any output. Its provided for wrapping purposes only!

        request - The originating request
        response - The original response - use for wrapping purposes only!
        The HTML of the newsletter page
        NewsletterException - if the HTML could not be created