Package com.adobe.cq.mcm.campaign
Interface ContentGenerator
-
public interface ContentGenerator
Interface for creating the content of a newsletter.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.String
createHTML(SlingHttpServletRequest request, SlingHttpServletResponse response)
Creates the HTML of the newsletter page.
-
-
-
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 requestresponse
- The original response - use for wrapping purposes only!- Returns:
- The HTML of the newsletter page
- Throws:
NewsletterException
- if the HTML could not be created
-
-