// also get the outlinks
if (theRSSChannels != null) {
for (int i = 0; i < theRSSChannels.size(); i++) {
RSSChannel r = (RSSChannel) theRSSChannels.get(i);
contentTitle.append(r.getTitle());
contentTitle.append(" ");
// concat the description to the index text
indexText.append(r.getDescription());
indexText.append(" ");
if (r.getLink() != null) {
try {
// get the outlink
if (r.getDescription()!= null ) {
theOutlinks.add(new Outlink(r.getLink(), r.getDescription(), getConf()));
} else {
theOutlinks.add(new Outlink(r.getLink(), "", getConf()));
}
} catch (MalformedURLException e) {
if (LOG.isWarnEnabled()) {
LOG.warn("MalformedURL: " + r.getLink());
LOG.warn("Attempting to continue processing outlinks");
e.printStackTrace(LogUtil.getWarnStream(LOG));
}
continue;
}
}
// now get the descriptions of all the underlying RSS Items and
// then index them too
for (int j = 0; j < r.getItems().size(); j++) {
RSSItem theRSSItem = (RSSItem) r.getItems().get(j);
indexText.append(theRSSItem.getDescription());
indexText.append(" ");
String whichLink = null;