Interface ContentGenerator


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

      • createHTML

        java.lang.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!

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