Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

HTML

...

Apache Wink provides a set of providers that are capable of serializing a number of data models (SyndEntry , and SyndFeed and HtmlDescriptor) as HTML. The following tables list these providers.

HtmlProvider

TBD

 

Supported

Media Types

Data model

Provider registration Entity

Read

No

N/A

N/A

Write

Yes

text/html

HtmlDescriptor

HtmlSyndEntryProvider

TBD

 

Supported

Media Types

Entity

Read

No

N/A

N/A

Write

Yes

text/html

SyndEntry

HtmlSyndFeedProvid

TBD

...

 

...

Supported

...

Media Types

...

Entity

...

Read

...

No

...

N/A

...

N/A

...

Write

...

Yes

...

text/html

...

org.apache.wink.common.model.synd.SyndFeed
org.apache.wink.common.model.synd.SyndEntry

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.