Examples of SyndImage


Examples of com.sun.syndication.feed.synd.SyndImage

        }

        // Image
        if(checkImage)
        {
            SyndImage image = syndFeed.getImage();
            if(image!=null)
            {
                if(isMatch(image.getTitle())) return true;
                if(isMatch(image.getDescription())) return true;
            }
        }

        // Categories
        if(checkCategories)
View Full Code Here

Examples of com.sun.syndication.feed.synd.SyndImage

        }

    }

    protected SyndImage createSyndImage(Image rssImage) {
        SyndImage syndImage = super.createSyndImage(rssImage);
        syndImage.setDescription(rssImage.getDescription());
        return syndImage;
    }
View Full Code Here

Examples of com.sun.syndication.feed.synd.SyndImage

        syndFeed.setPublishedDate(channel.getPubDate());    //c
        syndFeed.setAuthor(channel.getManagingEditor());    //c
    }

    protected SyndImage createSyndImage(Image rssImage) {
        SyndImage syndImage = super.createSyndImage(rssImage);
        syndImage.setDescription(rssImage.getDescription());
        return syndImage;
    }
View Full Code Here

Examples of com.sun.syndication.feed.synd.SyndImage

            syndFeed.setEntries(createSyndEntries(items));
        }
    }

    protected SyndImage createSyndImage(Image rssImage) {
        SyndImage syndImage = new SyndImageImpl();
        syndImage.setTitle(rssImage.getTitle());
        syndImage.setUrl(rssImage.getUrl());
        syndImage.setLink(rssImage.getLink());
        return syndImage;
    }
View Full Code Here

Examples of com.sun.syndication.feed.synd.SyndImage

        channel.setEncoding(syndFeed.getEncoding());

        channel.setTitle(syndFeed.getTitle());
        channel.setLink(syndFeed.getLink());
        channel.setDescription(syndFeed.getDescription());
        SyndImage sImage = syndFeed.getImage();
        if (sImage!=null) {
            channel.setImage(createRSSImage(sImage));
        }

        List sEntries = syndFeed.getEntries();
View Full Code Here

Examples of com.sun.syndication.feed.synd.SyndImage

        // add logo if we found one:
        if (logoURL != null)
        {
            // we use the path to the logo for this, the logo itself cannot
            // be contained in the rdf. Not all RSS-viewers show this logo.
            SyndImage image = new SyndImageImpl();
            image.setLink(objectURL);
            image.setTitle(localize(labels, MSG_LOGO_TITLE));
            image.setUrl(logoURL);
            feed.setImage(image);
        }

        // add entries for items
        if (items != null)
View Full Code Here

Examples of com.sun.syndication.feed.synd.SyndImage

        }

    }

    protected SyndImage createSyndImage(Image rssImage) {
        SyndImage syndImage = super.createSyndImage(rssImage);
        syndImage.setDescription(rssImage.getDescription());
        return syndImage;
    }
View Full Code Here

Examples of com.sun.syndication.feed.synd.SyndImage

      json.put("Description", Strings.nullToEmpty(feed.getDescription()));
      json.put("Link", Strings.nullToEmpty(feed.getLink()));

      //Retrieve the feed image if it is available as well as an image url if the image is available.
      if (feed.getImage() != null && !Strings.isNullOrEmpty(feed.getImage().getUrl())) {
        SyndImage feedImage = feed.getImage();
        JSONObject jsonImage = new JSONObject();
        jsonImage.put("Url", feedImage.getUrl());

        if (!Strings.isNullOrEmpty(feedImage.getTitle())) {
          jsonImage.put("Title", feedImage.getTitle());
        }
        if (!Strings.isNullOrEmpty(feedImage.getDescription())) {
          jsonImage.put("Description", feedImage.getDescription());
        }
        if (!Strings.isNullOrEmpty(feedImage.getLink())) {
          jsonImage.put("Link", feedImage.getLink());
        }
        json.put("Image", jsonImage);
      }

View Full Code Here

Examples of com.sun.syndication.feed.synd.SyndImage

        return syndEntry;
    }

    @Override
    protected SyndImage createSyndImage(Image rssImage) {
        SyndImage syndImage = super.createSyndImage(rssImage);
        syndImage.setDescription(rssImage.getDescription());

        return syndImage;
    }
View Full Code Here

Examples of com.sun.syndication.feed.synd.SyndImage

        // add logo if we found one:
        if (logoURL != null)
        {
            // we use the path to the logo for this, the logo itself cannot
            // be contained in the rdf. Not all RSS-viewers show this logo.
            SyndImage image = new SyndImageImpl();
            image.setLink(objectURL);
            if (StringUtils.isNotBlank(feed.getTitle())) {
                image.setTitle(feed.getTitle());
            } else {
                image.setTitle(localize(labels, MSG_LOGO_TITLE));
            }
            image.setUrl(logoURL);
            feed.setImage(image);
        }

        // add entries for items
        if (items != 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.