Java Code Examples for com.rometools.rome.feed.synd.SyndEnclosure#setUrl()

The following examples show how to use com.rometools.rome.feed.synd.SyndEnclosure#setUrl() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: ConverterForAtom10.java    From rome with Apache License 2.0 5 votes vote down vote up
public SyndEnclosure createSyndEnclosure(final Feed feed, final Entry entry, final Link link) {
    final SyndEnclosure syndEncl = new SyndEnclosureImpl();
    syndEncl.setUrl(link.getHrefResolved());
    syndEncl.setType(link.getType());
    syndEncl.setLength(link.getLength());
    return syndEncl;
}
 
Example 2
Source File: ConverterForAtom03.java    From rome with Apache License 2.0 5 votes vote down vote up
public SyndEnclosure createSyndEnclosure(final Entry entry, final Link link) {
    final SyndEnclosure syndEncl = new SyndEnclosureImpl();
    syndEncl.setUrl(link.getHrefResolved());
    syndEncl.setType(link.getType());
    syndEncl.setLength(link.getLength());
    return syndEncl;
}
 
Example 3
Source File: ConverterForRSS092.java    From rome with Apache License 2.0 5 votes vote down vote up
protected List<SyndEnclosure> createSyndEnclosures(final List<Enclosure> enclosures) {
    final List<SyndEnclosure> sEnclosures = new ArrayList<SyndEnclosure>();
    for (final Enclosure enc : enclosures) {
        final SyndEnclosure sEnc = new SyndEnclosureImpl();
        sEnc.setUrl(enc.getUrl());
        sEnc.setType(enc.getType());
        sEnc.setLength(enc.getLength());
        sEnclosures.add(sEnc);
    }
    return sEnclosures;
}