Package com.sun.syndication.feed.module.mediarss

Examples of com.sun.syndication.feed.module.mediarss.MediaModule


            log.warn("Omitting invalid target URL '" + url + "' from bookmark activity generated from feed.", ex);
        }

        object.put("targetTitle", InputCleaner.stripHtml(entry.getTitle(), MAXLENGTH));

        MediaModule media = (MediaModuleImpl) entry.getModule(MediaModule.URI);
        if (media != null && media.getMetadata().getThumbnail().length > 0)
        {
            object.put("thumbnail", InputCleaner.stripHtml(media.getMetadata().getThumbnail()[0].getUrl().toString(),
                    MAXLENGTH));
        }

        return object;
    }
View Full Code Here


            {
                object.put("imagePageURL", link.getHref());
            }
        }

        MediaModule media = (MediaModuleImpl) entry.getModule(MediaModule.URI);
        if (media != null && media.getMetadata().getThumbnail().length > 0)
        {
            object.put("thumbnail", media.getMetadata().getThumbnail()[0].getUrl().toString());
        }

        if (entry.getDescription() != null)
        {
            object.put("description", entry.getDescription().getValue());
View Full Code Here

TOP

Related Classes of com.sun.syndication.feed.module.mediarss.MediaModule

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.