Examples of Feed


Examples of com.google.api.adwords.v201309.cm.Feed

    FeedAttribute urlAttribute = new FeedAttribute();
    urlAttribute.setType(FeedAttributeType.URL);
    urlAttribute.setName("Link URL");

    // Create the feed.
    Feed siteLinksFeed = new Feed();
    siteLinksFeed.setName("Feed For Site Links");
    siteLinksFeed.setAttributes(new FeedAttribute[] {textAttribute, urlAttribute});
    siteLinksFeed.setOrigin(FeedOrigin.USER);

    // Create operation.
    FeedOperation operation = new FeedOperation();
    operation.setOperand(siteLinksFeed);
    operation.setOperator(Operator.ADD);

    // Add the feed.
    FeedReturnValue result = feedService.mutate(new FeedOperation[] {operation});

    Feed savedFeed = result.getValue()[0];
    siteLinksData.siteLinksFeedId = savedFeed.getId();
    FeedAttribute[] savedAttributes = savedFeed.getAttributes();
    siteLinksData.linkTextFeedAttributeId = savedAttributes[0].getId();
    siteLinksData.linkUrlFeedAttributeId = savedAttributes[1].getId();
    System.out.printf("Campaign with name %s and id %d with linkTextAttributeId %d"
        + " and linkUrlAttributeId %s was created.\n", savedFeed.getName(), savedFeed.getId(),
        savedAttributes[0].getId(), savedAttributes[1].getId());
  }
View Full Code Here

Examples of com.google.gdata.data.Feed

    // The default extension profile is configured to accept arbitrary XML
    // at the feed or entry level. A client never wants to lose any
    // foreign markup, so capture everything even if not explicitly
    // understood.
    new Feed().declareExtensions(extProfile);
  }
View Full Code Here

Examples of com.googlecode.mashups.services.generic.api.Feed

        Class  feedClass      = annotatedObject.getClass();
        String title          = null;
        String description    = null;
        String link           = null;
        List   feedItems      = new ArrayList();
        Feed   feedAnnotation = (Feed) feedClass.getAnnotation(Feed.class);

        if (feedAnnotation != null) {
            for (Method method : feedClass.getMethods()) {
                if (method.getAnnotation(FeedTitle.class) != null) {
                    title = (String) method.invoke(annotatedObject);
View Full Code Here

Examples of com.m4f.utils.feeds.parser.model.Feed

   
  }*/
 
 
  private Feed getStoreContent(URI source) { 
    Feed feed = null;
    try {
      feed = this.dao.findByKey(Feed.class, source.toASCIIString());
    } catch(Exception e) {
      LOGGER.severe(StackTraceUtil.getStackTrace(e));
    }
View Full Code Here

Examples of com.rometools.rome.feed.atom.Feed

   * <p>By default returns an Atom 1.0 feed, but the subclass can specify any Feed.
   * @see #setFeedType(String)
   */
  @Override
  protected Feed newFeed() {
    return new Feed(this.feedType);
  }
View Full Code Here

Examples of com.sun.syndication.feed.atom.Feed

public class ShoppingCartImpl implements Collection {

    private static Map<String, Entry> cart = new HashMap<String, Entry>();

    public Feed getFeed() {
        Feed feed = new Feed();
        feed.setTitle("shopping cart");
        Content subtitle = new Content();
        subtitle.setValue("Total : " + getTotal());
        feed.setSubtitle(subtitle);
        feed.getEntries().addAll(cart.values());
        return feed;
    }
View Full Code Here

Examples of com.uphea.rss.Feed

  public RssData view() {
    Question latestQuestion = questionService.findQuestionForDate(new JDateTime());
    List<Question> questions = questionService.findPreviousQuestions(latestQuestion, 24);
    questions.add(0, latestQuestion);

    Feed feed = new Feed();
    feed.setTitle("uphea.com");
    feed.setLink("http://uphea.com");
    feed.setDescription("the nice way of asking smart questions");
    feed.setEncoding(StringPool.UTF_8);
    feed.setPublishedDate(DateUtil.toJDateTime(latestQuestion.getDate()));

    for (Question q : questions) {
      FeedEntry entry = new FeedEntry();
      entry.setPublishedDate(DateUtil.toJDateTime(q.getDate()));
      entry.setTitle(Format.textPlain(q.getText()));
      String link = feed.getLink() + "/q/" + q.getDate();
      entry.setLink(link);
      entry.setGuid(link);
      entry.setDescription("What do you think about?");
      feed.addEntry(entry);
    }
    return new RssData(feed);
  }
View Full Code Here

Examples of de.nava.informa.impl.basic.Feed

           return new CmdResult(CmdResult.FAIL_CODE, null);
        }
        // we now have a collection of FeedIF objects;
        Iterator i = feedCollection.iterator();
        while (i.hasNext()) {
               Feed f = (Feed) i.next();
               // add this feed
               CmdResult addResult = addLinkCmd(Category, f.getLocation().toString());
               String resStr = "Feed "+f.getLocation().toString()+" import";
               if (addResult.getReturnCode() == CmdResult.SUCESS_CODE) {
                   System.out.println(resStr+" succeeded");
                   resStr += " succeeded\n";
               }
               else {
View Full Code Here

Examples of es.java.otro.model.Feed

    log.debug("init FeedServiceImpl");
  }
 
  @Override
  public void test() {
    feedDao.addFeed(new Feed());

  }
View Full Code Here

Examples of it.sauronsoftware.feed4j.bean.Feed

 
  public static void main(String[] argsthrows Exception{
   
    URL url = new URL ("http://feeds.feedburner.com/9gag?format=xml");
   
    Feed feed =  FeedParser.parse(url);
   
    System.out.println("MemsName");
    int nm = feed.getItemCount();
    for (int i = 0; i < nm; i++) {
      FeedItem nm1 = feed.getItem(i);
      //System.out.println("Link: " + mem1.getLink());
      System.out.println("Title: " + nm1.getDescriptionAsText());
      //System.out.println("Link: " + mem1.getAttributeValue("http://feeds.feedburner.com/9gag?format=xml", "src"));
    }
   
    System.out.println("MemsLink");
    int lnk = feed.getItemCount();
    for (int j=0; j < lnk; j++) {
      RawElement lnk1 = feed.getHeader();
      System.out.println("Link: " + lnk1.getElementValue("http://feeds.feedburner.com/9gag?format=xml", "src"));
      //
     
   
   
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.