Package org.apache.abdera.model

Examples of org.apache.abdera.model.Feed.addAuthor()


         Feed feed = abdera.getFactory().newFeed();
         feed.setId("tag:example.org,2007:/foo");
         feed.setTitle("Test Feed");
         feed.setSubtitle("Feed subtitle");
         feed.setUpdated(new Date());
         feed.addAuthor("James Snell");
         feed.addLink("http://example.com");

         Entry entry = feed.addEntry();
         entry.setId("tag:example.org,2007:/foo/entries/1");
         entry.setTitle("Entry title");
View Full Code Here


    feed.setLanguage("en-US");
    feed.setBaseUri("http://example.org");
   
    feed.setTitle("Example Feed");
    feed.addLink("http://example.org/");
    feed.addAuthor("John Doe");
    feed.setId("urn:uuid:60a76c80-d399-11d9-b93C-0003939e0af6", false);
    feed.addContributor("Bob Jones");
    feed.addCategory("example");
   
    Entry entry = feed.insertEntry();
View Full Code Here

    feed.setLanguage("en-US");
    feed.setBaseUri("http://example.org");
   
    feed.setTitle("Example Feed");
    feed.addLink("http://example.org/");
    feed.addAuthor("John Doe");
    feed.setId("urn:uuid:60a76c80-d399-11d9-b93C-0003939e0af6", false);
    feed.addContributor("Bob Jones");
    feed.addCategory("example");
   
    Entry entry = feed.insertEntry();
View Full Code Here

    feed.setBaseUri("http://example.org");
   
    feed.setTitle("Example Feed");
    feed.addLink("http://example.org/");
    feed.setUpdated(new Date());
    feed.addAuthor("John Doe");
    feed.setId("urn:uuid:60a76c80-d399-11d9-b93C-0003939e0af6");
    feed.addContributor("Bob Jones");
    feed.addCategory("example");
   
    Entry entry = feed.insertEntry();
View Full Code Here

        Factory factory = Abdera.getNewFactory();
        Feed f = factory.newFeed();
        f.setBaseUri(uParam.getAbsolutePath().toString());
        f.setTitle("Collection of Books");
        f.setId("http://www.books.com");
        f.addAuthor("BookStore Management Company");
        try {
            for (Book b : books.values()) {
               
                Entry e = AtomUtils.createBookEntry(factory, b);
               
View Full Code Here

        Factory factory = Abdera.getNewFactory();
        Feed f = factory.newFeed();
        f.setBaseUri(uParam.getAbsolutePath().toString());
        f.setTitle("Collection of Books");
        f.setId("http://www.books.com");
        f.addAuthor("BookStore Management Company");
        try {
            for (Book b : books.values()) {
               
                Entry e = AtomUtils.createBookEntry(b);
               
View Full Code Here

   
    Feed feed = abdera.newFeed();
    feed.setId(config.getFeedUri());
    feed.setTitle(feedTitle == null ? "feed" : feedTitle);
    feed.setUpdated(new Date());
    feed.addAuthor(feedAuthor == null ? getServerName() : feedAuthor);

    return feed;
  }

  protected void addEditLinkToEntry(Entry entry) {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.