protected WireFeed createRealFeed(String type,SyndFeed syndFeed) { Channel channel = (Channel) super.createRealFeed(type,syndFeed); List cats = syndFeed.getCategories(); //c if (cats.size()>0) { channel.setCategories(createRSSCategories(cats)); } return channel; }
@Override protected WireFeed createRealFeed(String type,SyndFeed syndFeed) { Channel channel = (Channel) super.createRealFeed(type,syndFeed); List cats = syndFeed.getCategories(); //c if (cats.size()>0) { channel.setCategories(createRSSCategories(cats)); } return channel; }
@Override protected WireFeed createRealFeed(String type,SyndFeed syndFeed) { Channel channel = (Channel) super.createRealFeed(type,syndFeed); List cats = syndFeed.getCategories(); //c if (cats.size()>0) { channel.setCategories(createRSSCategories(cats)); } return channel; }
protected WireFeed createRealFeed(String type,SyndFeed syndFeed) { Channel channel = (Channel) super.createRealFeed(type,syndFeed); List cats = syndFeed.getCategories(); //c if (cats.size()>0) { channel.setCategories(createRSSCategories(cats)); } return channel; }
protected WireFeed parseChannel(Element rssRoot) { Channel channel = (Channel) super.parseChannel(rssRoot); Element eChannel = rssRoot.getChild("channel",getRSSNamespace()); List eCats = eChannel.getChildren("category",getRSSNamespace()); channel.setCategories(parseCategories(eCats)); Element eTtl = eChannel.getChild("ttl",getRSSNamespace()); if (eTtl!=null && eTtl.getText() != null ) { Integer ttlValue = null; try{ ttlValue = new Integer(eTtl.getText()); } catch(NumberFormatException nfe ){ ; //let it go by } if (ttlValue != null) { channel.setTtl(ttlValue.intValue()); } } return channel; }
protected WireFeed parseChannel(Element rssRoot) { Channel channel = (Channel) super.parseChannel(rssRoot); Element eChannel = rssRoot.getChild("channel",getRSSNamespace()); List eCats = eChannel.getChildren("category",getRSSNamespace()); channel.setCategories(parseCategories(eCats)); Element eTtl = eChannel.getChild("ttl",getRSSNamespace()); if (eTtl!=null && eTtl.getText() != null ) { Integer ttlValue = null; try{ ttlValue = new Integer(eTtl.getText()); } catch(NumberFormatException nfe ){ ; //let it go by } if (ttlValue != null) { channel.setTtl(ttlValue.intValue()); } } return channel; }
protected WireFeed parseChannel(Element rssRoot) { Channel channel = (Channel) super.parseChannel(rssRoot); Element eChannel = rssRoot.getChild("channel",getRSSNamespace()); List eCats = eChannel.getChildren("category",getRSSNamespace()); channel.setCategories(parseCategories(eCats)); Element eTtl = eChannel.getChild("ttl",getRSSNamespace()); if (eTtl!=null && eTtl.getText() != null ) { Integer ttlValue = null; try{ ttlValue = new Integer(eTtl.getText()); } catch(NumberFormatException nfe ){ ; //let it go by } if (ttlValue != null) { channel.setTtl(ttlValue.intValue()); } } return channel; }
protected WireFeed parseChannel(Element rssRoot) { Channel channel = (Channel) super.parseChannel(rssRoot); Element eChannel = rssRoot.getChild("channel",getRSSNamespace()); List eCats = eChannel.getChildren("category",getRSSNamespace()); channel.setCategories(parseCategories(eCats)); Element eTtl = eChannel.getChild("ttl",getRSSNamespace()); if (eTtl!=null && eTtl.getText() != null ) { Integer ttlValue = null; try{ ttlValue = new Integer(eTtl.getText()); } catch(NumberFormatException nfe ){ //let it go by } if (ttlValue != null) { channel.setTtl(ttlValue); } } return channel; }