Examples of SyndFeedImpl


Examples of com.sun.syndication.feed.synd.SyndFeedImpl

                // Convert to an RSS feed
                if (feed != null) {
                    response.setContentType("application/rss+xml; charset=utf-8");
                    feed.setFeedType("atom_1.0");
                    SyndFeed syndFeed = new SyndFeedImpl(feed);
                    syndFeed.setFeedType(requestFeedType);
                    syndFeed.setLink(path);
                    SyndFeedOutput syndOutput = new SyndFeedOutput();
                    try {
                        syndOutput.output(syndFeed, getWriter(response));
                    } catch (FeedException e) {
                        throw new ServletException(e);
View Full Code Here

Examples of com.sun.syndication.feed.synd.SyndFeedImpl

                }
                org.apache.tuscany.sca.implementation.data.collection.Entry<Object, Object>[] collection =
                    (org.apache.tuscany.sca.implementation.data.collection.Entry<Object, Object>[])responseMessage.getBody();
                if (collection != null) {
                    // Create the feed
                    feed = new SyndFeedImpl();
                    feed.setTitle("Feed");
                   
                    for (org.apache.tuscany.sca.implementation.data.collection.Entry<Object, Object> entry: collection) {
                        SyndEntry feedEntry = createFeedEntry(entry);
                        feed.getEntries().add(feedEntry);
View Full Code Here

Examples of com.sun.syndication.feed.synd.SyndFeedImpl

    }

    public SyndFeed getFeed() {
        System.out.println(">>> CustomerCollectionImpl.getFeed");

        SyndFeed feed = new SyndFeedImpl();
        feed.setTitle("customers");
        feed.setDescription("This is a sample feed");
        feed.getEntries().addAll(entries.values());
        return feed;
    }
View Full Code Here

Examples of com.sun.syndication.feed.synd.SyndFeedImpl

    }

    public SyndFeed query(String queryString) {
        System.out.println(">>> CustomerCollectionImpl.query");

        SyndFeed feed = new SyndFeedImpl();
        feed.setTitle("customers");
        feed.setDescription("This is a sample feed");
        feed.getEntries().addAll(entries.values());
        return feed;
    }
View Full Code Here

Examples of com.sun.syndication.feed.synd.SyndFeedImpl

        if (content == null) {
            return ServiceUtil.returnError("Not able to generate RSS feed for content: " + contentId);
        }

        // create the feed
        SyndFeed feed = new SyndFeedImpl();
        feed.setFeedType(feedType);
        feed.setLink(mainLink);

        feed.setTitle(content.getString("contentName"));
        feed.setDescription(content.getString("description"));
        feed.setEntries(generateEntryList(dispatcher, delegator, contentId, entryLink, locale, userLogin));

        Map resp = ServiceUtil.returnSuccess();
        resp.put("wireFeed", feed.createWireFeed());
        return resp;
    }
View Full Code Here

Examples of com.sun.syndication.feed.synd.SyndFeedImpl

                Map kvp = KvpRequestReader.parseKvpSet( req.getQueryString() );
                SyndFeed feed = null;
               
                if ( kvp.isEmpty() ) {
                     //send back a feed with a link to the opensearch template
                    feed = new SyndFeedImpl();
                    feed.setFeedType("atom_1.0");
                    SyndLink link = new SyndLinkImpl();
                    link.setRel( "search" );
                    link.setHref( ResponseUtils.appendPath(baseUrl, "opensearch.xml"));
                    link.setType( "application/opensearchdescription+xml");
View Full Code Here

Examples of com.sun.syndication.feed.synd.SyndFeedImpl

        }
        return createFeed();
    }

    protected SyndFeed createFeed() {
        SyndFeed feed = new SyndFeedImpl();
        feed.setFeedType(feedType);

        feed.setTitle(getTitle());
        feed.setLink(getLink());
        feed.setDescription(getFeedDescription());
        return feed;
    }
View Full Code Here

Examples of com.sun.syndication.feed.synd.SyndFeedImpl

     * Poll for updates
     */
    public void poll() {
        List list = getLastesEntries();
        if (list != null && !list.isEmpty()) {
            SyndFeed feed = new SyndFeedImpl();
            feed.setFeedType(outputType);
            feed.setTitle("Aggregated Feed");
            feed.setDescription("Anonymous Aggregated Feed");
            feed.setAuthor("servicemix");
            feed.setLink("http://www.servicemix.org");
            feed.setEntries(list);
            // send on to the nmr ...
            SyndFeedOutput output = new SyndFeedOutput();
            try {
                Source source = new DOMSource(output.outputW3CDom(feed));
                InOnly exchange = getExchangeFactory().createInOnlyExchange();
View Full Code Here

Examples of com.sun.syndication.feed.synd.SyndFeedImpl

                feed = input.build(new XmlReader(getFile(layer)));   
            }
        }
        else {
            //create a new empty feed
            feed = new SyndFeedImpl();
            feed.setFeedType("atom_1.0");
            feed.setTitle(layer + " changes");
        }
       
        return feed;
View Full Code Here

Examples of com.sun.syndication.feed.synd.SyndFeedImpl

        }
        return description;
    }

    protected SyndFeed createFeed(QueueBrowser browser, HttpServletRequest request) throws JMSException {
        SyndFeed feed = new SyndFeedImpl();
        feed.setFeedType(feedType);

        String title = browser.getQueue().toString();
        String selector = browser.getMessageSelector();
        if (selector != null) {
            title += " with selector: " + selector;
        }
        feed.setTitle(title);
        feed.setLink(request.getRequestURI());
        feed.setDescription(getDescription());
        return feed;
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.