Package com.rometools.rome.feed.synd

Examples of com.rometools.rome.feed.synd.SyndLinkImpl


    if (foreignMarkup == null) {
      return;
    }
    for (Element element : foreignMarkup) {
      if ("link".equals(element.getName()) && ATOM_10_NS.equals(element.getNamespace())) {
        SyndLink link = new SyndLinkImpl();
        link.setRel(element.getAttributeValue("rel"));
        link.setHref(element.getAttributeValue("href"));
        feed.getLinks().add(link);
      }
    }
  }
View Full Code Here


        } else {
            syndEntry.setUri(itemLink);
        }

        if (item.getComments() != null) {
            final SyndLinkImpl comments = new SyndLinkImpl();
            comments.setRel("comments");
            comments.setHref(item.getComments());
            comments.setType("text/html");
        }

        return syndEntry;

    }
View Full Code Here

        }
        return syndLinks;
    }

    public SyndLink createSyndLink(final Link link) {
        final SyndLink syndLink = new SyndLinkImpl();
        syndLink.setRel(link.getRel());
        syndLink.setType(link.getType());
        syndLink.setHref(link.getHrefResolved());
        syndLink.setTitle(link.getTitle());
        return syndLink;
    }
View Full Code Here

        link.setLength(syndEnclosure.getLength());
        return link;
    }

    public SyndLink createSyndLink(final Link link) {
        final SyndLink syndLink = new SyndLinkImpl();
        syndLink.setRel(link.getRel());
        syndLink.setType(link.getType());
        syndLink.setHref(link.getHrefResolved());
        syndLink.setHreflang(link.getHreflang());
        syndLink.setLength(link.getLength());
        syndLink.setTitle(link.getTitle());
        return syndLink;
    }
View Full Code Here

TOP

Related Classes of com.rometools.rome.feed.synd.SyndLinkImpl

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.