Package com.rometools.rome.feed.rss

Examples of com.rometools.rome.feed.rss.Channel


    }

    @Override
    protected WireFeed parseChannel(final Element rssRoot, final Locale locale) {

        final Channel channel = (Channel) super.parseChannel(rssRoot, locale);

        final Element eChannel = rssRoot.getChild("channel", getRSSNamespace());
        final String uri = eChannel.getAttributeValue("about", getRDFNamespace());
        if (uri != null) {
            channel.setUri(uri);
        }

        return channel;
    }
View Full Code Here


    public Issue162Test() {
        super("rss_2.0");
    }

    public void testWireFeed() throws Exception {
        final Channel channel = (Channel) getCachedWireFeed();
        assertProperty(channel.getDocs(), "channel.docs");
        assertProperty(channel.getGenerator(), "channel.generator");
        assertProperty(channel.getManagingEditor(), "channel.managingEditor");
        assertProperty(channel.getWebMaster(), "channel.webMaster");
    }
View Full Code Here

    public void testPreserveWireFeedComments() throws Exception {
        final WireFeed wf = this.getCachedSyndFeed(true).originalWireFeed();
        assertNotNull(wf);
        assertTrue(wf instanceof Channel);
        if (wf instanceof Channel) {
            final Channel channel = (Channel) wf;
            assertEquals("rss_2.0.channel.item[0].comments", channel.getItems().get(0).getComments());
            assertEquals("rss_2.0.channel.item[1].comments", channel.getItems().get(1).getComments());
        }
    }
View Full Code Here

TOP

Related Classes of com.rometools.rome.feed.rss.Channel

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.