Package com.netflix.recipes.rss

Examples of com.netflix.recipes.rss.RSS


     */
    public Subscriptions getSubscriptions(String userId) throws Exception {
        List<String> feedUrls = store.getSubscribedUrls(userId);
        List<RSS> feeds = new ArrayList<RSS>(feedUrls.size());
        for (String feedUrl: feedUrls) {
            RSS rss = RSSManager.getInstance().fetchRSSFeed(feedUrl);
            if (rss.getItems() != null && !rss.getItems().isEmpty()) {
                feeds.add(rss);
            }
        }

        return new SubscriptionsImpl(userId, feeds);
View Full Code Here


     */
    private RSS parseRSS(String url, String rss) {
        // Error case
        if (rss == null) return new RSSImpl();
       
        RSS rssItems = null;
        DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();
        try {
            DocumentBuilder db = dbf.newDocumentBuilder();
            try {
                InputSource is = new InputSource(new StringReader(rss));
View Full Code Here

TOP

Related Classes of com.netflix.recipes.rss.RSS

Copyright © 2018 www.massapicom. 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.