Package com.sun.syndication.feed.rss

Examples of com.sun.syndication.feed.rss.Content


        List contents = sEntry.getContents();

        if ((contents != null) && (contents.size() > 0)) {
            SyndContent syndContent = (SyndContent) contents.get(0);
            Content cont = new Content();
            cont.setValue(syndContent.getValue());
            cont.setType(syndContent.getType());
            item.setContent(cont);
        }

        return item;
    }
View Full Code Here


            descContent.setType(desc.getType());
            descContent.setValue(desc.getValue());
            syndEntry.setDescription(descContent);
        }

        Content cont = item.getContent();

        if (cont != null) {
            SyndContent content = new SyndContentImpl();
            content.setType(cont.getType());
            content.setValue(cont.getValue());

            List syndContents = new ArrayList();
            syndContents.add(content);
            syndEntry.setContents(syndContents);
        }
View Full Code Here

            SyndContent descContent = new SyndContentImpl();
            descContent.setType(desc.getType());
            descContent.setValue(desc.getValue());
            syndEntry.setDescription(descContent);
        }
        Content cont = item.getContent();
        if (cont!=null) {
            SyndContent contContent = new SyndContentImpl();
            contContent.setType(cont.getType());
            contContent.setValue(cont.getValue());
            List contents = new ArrayList();
            contents.add(contContent);
            syndEntry.setContents(contents);
        }
               
View Full Code Here

        desc.setType(sContent.getType());
        return desc;
    }

    protected Content createItemContent(SyndContent sContent) {
        Content cont = new Content();
        cont.setValue(sContent.getValue());
        cont.setType(sContent.getType());
        return cont;
    }
View Full Code Here

            String htmlText = processor.markdownToHtml(statusText);
            log.debug("feed html content {}", htmlText);
            // url handling  for mention & tags
            htmlText = convertLinks(htmlText);

            Content content = new Content();
            content.setType(Content.HTML);
            content.setValue(htmlText);
            item.setContent(content);

            // build link for the status
            StringBuilder linkBuilder = new StringBuilder(statusBaseLink);
            linkBuilder
View Full Code Here

    List<Item> items = new ArrayList<Item>(listContent.size());
    for(SampleContent tempContent : listContent ){
      
      Item item = new Item();
      Content content = new Content();
      content.setValue(tempContent.getSummary());
      item.setContent(content);
      item.setTitle(tempContent.getTitle());
      item.setLink(tempContent.getUrl());
      item.setPubDate(tempContent.getCreatedDate());
View Full Code Here

        if (e!=null) {
            item.setDescription(parseItemDescription(rssRoot,e));
        }
        Element ce = eItem.getChild("encoded", getContentNamespace());
        if (ce != null) {
            Content content = new Content();
            content.setType(Content.HTML);
            content.setValue(ce.getText());
            item.setContent(content);
        }
        return item;
    }
View Full Code Here

        if (e!=null) {
            item.setDescription(parseItemDescription(rssRoot,e));
        }
        Element ce = eItem.getChild("encoded", getContentNamespace());
        if (ce != null) {
            Content content = new Content();
            content.setType(Content.HTML);
            content.setValue(ce.getText());
            item.setContent(content);
        }

        String uri = eItem.getAttributeValue("about", getRDFNamespace());
        if (uri != null) {
View Full Code Here

            SyndContent descContent = new SyndContentImpl();
            descContent.setType(desc.getType());
            descContent.setValue(desc.getValue());
            syndEntry.setDescription(descContent);
        }
        Content cont = item.getContent();
        if (cont != null) {
            SyndContent content = new SyndContentImpl();
            content.setType(cont.getType());
            content.setValue(cont.getValue());
            List syndContents = new ArrayList();
            syndContents.add(content);
            syndEntry.setContents(syndContents);
        }
        return syndEntry;
View Full Code Here

            item.setDescription(createItemDescription(sContent));
        }
        List contents = sEntry.getContents();
        if (contents != null && contents.size() > 0) {
            SyndContent syndContent = (SyndContent)contents.get(0);
            Content cont = new Content();
            cont.setValue(syndContent.getValue());
            cont.setType(syndContent.getType());
            item.setContent(cont);
        }
        return item;
    }
View Full Code Here

TOP

Related Classes of com.sun.syndication.feed.rss.Content

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.