Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 5.3

...

The following table shows the Atom Feed data models and the representations in which it the Atom data models can be serialized and de-serialized.

 

Supported

Media Types

Data Model

Provider registration

Read

Yes

application/atom+xml

org.apache.wink
.common.model
.atom.AtomFeed

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

Not required. Registered by default

Write

Yes

application/atom+xml

org.apache.wink
.common.model
.atom.AtomFeed

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

Not required. Registered by default

...

The following code example demonstrates the consumption of an Atom Feed.

Code Block
        @POST
    @Consumes(MediaType.APPLICATION_ATOM_XML)
    public void setFeed(AtomFeed feed) {
        ...

        return;
    }

...