Package org.apache.abdera.model

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


    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

  protected Feed createFeed() throws Exception {
    Feed feed = abdera.newFeed();
    feed.setId(config.getFeedUri());
    feed.setTitle(config.getFeedTitle());
    feed.setUpdated(new Date());
    feed.addAuthor(config.getFeedAuthor());
    return feed;
  }

  protected void addEditLinkToEntry(Entry entry) throws Exception {
    if (ProviderHelper.getEditUriFromEntry(entry) == null) {
View Full Code Here

    Feed feed = factory.newFeed();
    feed.setId(getId(request));
    feed.setTitle(getTitle(request));
    feed.addLink("");
    feed.addLink("", "self");
    feed.addAuthor(getAuthor(request));
    feed.setUpdated(new Date());
    return feed;
  }
 
  /**
 
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");
   
    // Creates an entry and inserts it at the beginning of the list
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 = factory.newFeed();
            feed.setId(baseURI + APPConstants.ATOM + encodeURL(suggestedPath));
//            feed.setId(encodeURL(suggestedPath));
            feed.setTitle(suggestedPath);
            feed.setSubtitle(resource.getDescription());
            feed.addAuthor(username);
            feed.setUpdated(new Date());
            element = feed;
        } else {
            Entry entry = factory.newEntry();
            entry.setId(baseURI + APPConstants.ATOM + encodeURL(suggestedPath));
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 feed = factory.newFeed();
        feed.setTitle(feedTitle);
        feed.setSubtitle(feedDescription);
        Person author = factory.newAuthor();
        author.setName(feedAuthor);
        feed.addAuthor(author);
        feed.addLink("http://incubator.apache.org/tuscany", "alternate");

        // Aggregate entries from atomFeed1, atomFeed2, rssFeed1 and rssFeed2
        List<Entry> entries = new ArrayList<Entry>();
        if (atomFeed1 != null) {
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.