HTML
Apache Wink provides a set of providers that are capable of serializing a number of data models (SyndEntry and SyndFeed) as HTML.
|
Supported |
Media Types |
Data model |
Provider registration |
---|---|---|---|---|
Read |
No |
N/A |
N/A |
N/A |
Write |
Yes |
text/html |
org.apache.wink.common.model.synd.SyndFeed |
See below. |
Activating the HTML provider
The wink HTML providers are not enabled by default. In order to activate them there is a need to register the HtmlSyndEntryProvider and the HtmlSyndFeedProvider providers, located in the org.apache.wink.server.internal.providers.entity.html package.
Since the HTML providers uses jsps for the generation of the representation there is also a need to have the HtmlDefaultRepresentation folder including all it's content and subfolders available for the servlet container, see the way it implements in the QADefect example.
Example
Detailed example of the HTML implementation can be seen at the QADefect example.