...
The following section describes the Apache Wink providers that are an addition to the JAX-RS requirements.
Atom Providers
Apache Wink provides a set of entity providers that are capable of mapping Atom Feed and Atom Entry XML documents to and from an Atom data model.
Info | ||
---|---|---|
| ||
Refer to chapter 9 TBD for more information on Data Models. |
Atom Providers
The following tables list these providers.
AtomFeedProvider
| Supported | Media Types | Entity |
---|---|---|---|
Read | Yes | application/atom+xml | AtomFeed |
Write | Yes | application/atom+xml | AtomFeed |
AtomFeedSyndFeedProvider
| Supported | Media Types | Entity |
---|---|---|---|
Read | Yes | application/atom+xml | SyndFeed |
Write | Yes | application/atom+xml | SyndFeed |
AtomFeedJAXBElementProvider
| Supported | Media Types | Entity |
---|---|---|---|
Read | Yes | application/atom+xml | JAXBElement<AtomFeed> |
Write | Yes | application/atom+xml | JAXBElement<AtomFeed> |
AtomEntryProvider
| Supported | Media Types | Entity |
---|---|---|---|
Read | Yes | application/atom+xml | AtomEntry |
Write | Yes | application/atom+xml | AtomEntry> |
AtomEntrySyndEntryProvider
| Supported | Media Types | Entity |
---|---|---|---|
Read | Yes | application/atom+xml | SyndEntry |
Write | Yes | application/atom+xml | SyndEntry> |
AtomEntryJAXBElementProvider
| Supported | Media Types | Entity |
---|---|---|---|
Read | Yes | application/atom+xml | JAXBElement<AtomEntry> |
Write | Yes | application/atom+xml | JAXBElement<AtomEntry>> |
APP Providers
Apache Wink provides a set of providers that are capable of mapping APP Service Document and APP Categories data models to their xml representations. The following tables list these providers.
Info | ||
---|---|---|
| ||
Refer to chapter 9, section 9.5 TBD in chapter 9 for more information on the Atom Publishing Protocol. |
AppServiceProvider
| Supported | Media Types | Entity |
---|---|---|---|
Read | No | N/A | N/A |
Write | Yes | application/atomsvc+xml | AppService>> |
AppCategoriesProvider
| Supported | Media Types | Entity |
---|---|---|---|
Read | No | N/A | N/A |
Write | Yes | application/atomcat+xml | AppCategories>> |
CategoriesProvider
| Supported | Media Types | Entity |
---|---|---|---|
Read | No | N/A | N/A |
Write | Yes | application/atomcat+xml | Categories>> |
OpenSearch Provider
Apache Wink provides a single provider that is capable of serializing the OpenSearch data model.
Info | ||
---|---|---|
| ||
Refer to the xml representations chapter 9, section 9.7 TBD for more information on OpenSearch. |
OpenSearchDescriptionProvider
| Supported | Media Types | Entity |
---|---|---|---|
Read | No | N/A | N/A |
Write | Yes | application/opensearchdescription+xml | OpenSearchDescription >> |
Json Providers
Apache Wink provides a set providers that are capable of serializing a number of data models (JSONObject, JAXBElement, SyndEntry, SyndFeed) into JSON representations. The following tables list these providers.
JsonProvider
| Supported | Media Types | Entity |
---|---|---|---|
Read | No | N/A | N/A |
Write | Yes | application/json , application/javascript | JSONObject >> |
JsonJAXBProvider
| Supported | Media Types | Entity |
---|---|---|---|
Read | No | N/A | N/A |
Write | Yes | application/json , application/javascript | JAXB object, |
JsonSyndEntryProvider
| Supported | Media Types | Entity |
---|---|---|---|
Read | No | N/A | N/A |
Write | Yes | application/json, application/javascript | SyndEntry>> |
JsonSyndFeedProvider
| Supported | Media Types | Entity |
---|---|---|---|
Read | No | N/A | N/A |
Write | Yes | application/json , application/javascript | SyndFeed>> |
Asset Provider
Apache Wink provides a special provider that is responsible for reading and writing Asset objects.
Info | ||
---|---|---|
| ||
Refer to chapter 5 TBD for more information on Assets. |
AssetProvider
| Supported | Media Types | Entity |
---|---|---|---|
Read | No | / | POJOs annotated with @Asset annotation. |
Write | Yes | / | POJOs annotated with @Asset annotation.>> |
HTML Providers
Apache Wink provides a set of providers that are capable of serializing a number of data models (SyndEntry, SyndFeed and HtmlDescriptor) as HTML. The following tables list these providers.
HtmlProvider
| Supported | Media Types | Entity |
---|---|---|---|
Read | No | N/A | N/A |
Write | Yes | text/html | HtmlDescriptor |
HtmlSyndEntryProvider
| Supported | Media Types | Entity |
---|---|---|---|
Read | No | N/A | N/A |
Write | Yes | text/html | SyndEntry |
HtmlSyndFeedProvid
| Supported | Media Types | Entity |
---|---|---|---|
Read | No | N/A | N/A |
Write | Yes | text/html | SyndFeed |
CSV Providers
Apache Wink supports the serializing and de-serializing of data as a CSV.
Info | ||
---|---|---|
| ||
Refer to chapter 9, section 9.6 TBD for more information on Comma Separated Values. |
The following tables list the providers that provide this functionality.
CsvSerializerProvider
| Supported | Media Types | Entity |
---|---|---|---|
Read | No | N/A | N/A |
Write | Yes | text/csv | CsvSerializer |
CsvDeserializerProvider
| Supported | Media Types | Entity |
---|---|---|---|
Read | Yes | text/csv | CsvDeserializer |
Write | No | N/A | N/A |