View Javadoc
1   /*
2    * Copyright (c) MuleSoft, Inc.  All rights reserved.  http://www.mulesoft.com
3    * The software in this package is published under the terms of the CPAL v1.0
4    * license, a copy of which has been included with this distribution in the
5    * LICENSE.txt file.
6    */
7   package org.mule.module.rss;
8   
9   import com.sun.syndication.feed.synd.SyndEntry;
10  import com.sun.syndication.feed.synd.SyndEntryImpl;
11  
12  import java.util.ArrayList;
13  import java.util.List;
14  
15  //Currently not used
16  public class RssEntryCreatorComponent
17  {
18  
19      public SyndEntry readFeed(String title, String content) throws Exception
20      {
21          SyndEntry entry = new SyndEntryImpl();
22          entry.setTitle(title);
23          List contents = new ArrayList();
24          contents.add(content);
25          entry.setContents(contents);
26          entry.setAuthor("Ross Mason");
27          return entry;
28      }
29  }