Package com.rsslibj.elements

Examples of com.rsslibj.elements.Channel.addItem()


        channel.setTitle("Ngqa questions");
       
        if (obj instanceof Pager) {
          Pager<Question> pager = (Pager<Question>) obj;
          for (Question question : pager.getData()) {
        channel.addItem(Helpers.makeQuestionURL(question), question.getTitle(), question.getContent());
      }
        } else if (obj instanceof Question) {
          Question question = (Question) obj;
          channel.addItem(Helpers.makeQuestionURL(question), question.getTitle(), question.getContent());
        }
View Full Code Here


          for (Question question : pager.getData()) {
        channel.addItem(Helpers.makeQuestionURL(question), question.getTitle(), question.getContent());
      }
        } else if (obj instanceof Question) {
          Question question = (Question) obj;
          channel.addItem(Helpers.makeQuestionURL(question), question.getTitle(), question.getContent());
        }
        resp.getWriter().write(channel.getFeed("rss"));
  }

}
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.