Hi Jesse, I have created the following (temporary) wiki page for capturing this mapping: http://cwiki.apache.org/confluence/display/WINK/Mapping+RSS+into+Syndication+Object+Model
And I am sorry, I haven't yet looked into the code. Will do that soon. Thanks, Shiva Kumar H R On Tue, Mar 23, 2010 at 9:10 PM, Jesse A Ramos <[email protected]> wrote: > I've uploaded a patch with my changes to JIRA WINK-149 ( > https://issues.apache.org/jira/browse/WINK-149). > > I wanted to give folks an opportunity to review this before I committed as > I wasn't sure if I did the mappings 100% correctly. In addition to the > question below, there were a few other areas that I wasn't sure about. > > Here is how I mapped things from the syndication Object model to the RSS > model: > > SyndFeed --> RssFeed/RssChannel (Mapping a SyndFeed to an RssFeed results > in an RssFeed with version 2.0. The attribute mapping is done in > RssChannel) > ------------------------------------------------------ > SyndFeed.base --> RssChannel.link > SyndFeed.generator --> RssChannel.generator > SyndFeed.icon --> RssChannel.image > SyndFeed.lang --> RssChannel.language > SyndFeed.rights --> RssChannel.copyright > SyndFeed.title --> RssChannel.title > SyndFeed.entries/SyndFeed.links --> RssChannel.items > > SyndEntry --> RssItem > --------------------------------- > SyndEntry.authors (first item) --> RssItem.author > SyndEntry.base --> RssItem.link > SyndEntry.published --> RssItem.pubDate > SyndEntry.title --> RssItem.title > SyndEntry.summary --> RssItem.description > SyndEntry.id --> RssItem.guid > > SyndLink --> RssItem > -------------------------------- > SyndLink.title --> RssItem.title > SyndLink.base --> RssItem.link > > SyndCategory --> RssCategory > ----------------------------------------------- > SyndCategory.term --> RssCategory.domain > SyndCategory.label --> RssCategory.content > > Anything not listed here was not mapped. Any feedback/corrections are > greatly appreciated. > > > > From: > Jesse A Ramos/Austin/i...@ibmus > To: > [email protected] > Date: > 03/22/2010 11:08 AM > Subject: > Re: Map RSS to Syndication Object Model > > > > I went ahead and starting working on this. > > I have a question regarding the mapping of links in a SyndFeed. Would > these map to RssItems? Currently I'm mapping SyndEnty's to RssItems but > wasn't sure if I should do the same for links. > > Thanks for the clarification. I'll post what I've mapped on the > syndication side to the RSS side as there are other items I'm not 100% > sure about when I'm done just to make sure that it's correct. > > -- Jesse > > > > > From: > Shiva Kumar H R <[email protected]> > To: > [email protected] > Date: > 03/18/2010 08:18 PM > Subject: > Re: Map RSS to Syndication Object Model > > > > Many thanks Jesse. I will look further into this. > > Thanks, > Shiva Kumar H R > > On Thu, Mar 18, 2010 at 8:02 PM, Jesse A Ramos <[email protected]> wrote: > > > Hi Shiva, > > > > I took a look at this yesterday to see if I could figure out what needed > > to be done. This is what I found. > > > > In org.apache.wink.common.model.atom the ATOM Object model classes have > > constructors that accept the Objects from > > org.apache.wink.common.model.synd (ex: the constructor > AtomFeed(SyndFeed)) > > which allow the syndication Objects to be converted to ATOM Objects. > > Similarly, there are adapter classes under > > org.apache.wink.server.internal.entity.html that allow a conversion to > > html. > > > > Additionally, there are provides (AtomFeedSyndFeedProvider, > > AtomEntrySyndEntryProvider, HtmlSyndFeedProvider, and > > HtmlSyndEntryProvider) which allow syndication Objects to be serialized > to > > those other formats and which make use of the adapters. > > > > I believe that the JIRA was created to add similar support to the RSS > > Object model. > > > > -- Jesse > > > > >I need some help in resolving JIRA > > >https://issues.apache.org/jira/browse/WINK-149 "Map RSS to Syndication > > >Object Model". I had opened this JIRA after a suggestion on dev list. > > >However I must acknowledge that I never understood the need/importance > of > > >this. > > > > > >Can someone help me by throwing some light on this? What is expected > and > > how > > >would that be useful? > > > > > >Thanks, > > >Shiva Kumar H R > > > > > > > > > > >
