Package com.webstersmalley.musiclibrary.podcaster.rss

Examples of com.webstersmalley.musiclibrary.podcaster.rss.RSSChannel


 
  @Override
  public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
   
   
    RSSChannel rsschannel = new RSSChannel();
    rsschannel.setTitle("Test Channel");
    rsschannel.setDescription("What's to describe?");
    rsschannel.setUrl("http://localhost:9080/podcaster/channel/testchannel");
   
    RSSItem item = new RSSItem();
    item.setTitle("Test item");
    item.setDescription("Test Description");
    item.setLength(1024);
View Full Code Here


    File folder = new File(rootFolder + File.separator + name);
    return getChannel(folder);
  }
 
  public RSSChannel getChannel(File f) {
    RSSChannel channel = new RSSChannel();
    channel.setTitle(xmlEscape(f.getName()));
    channel.setDescription(xmlEscape(f.getName()));
    channel.setUrl(xmlEscape(rootUrl + "channel/" + f.getName() + ".xml"));
    return channel;
  }
View Full Code Here

  }

  public ModelAndView handleRequest(HttpServletRequest request, HttpServletResponse response) {
    Map<String, Object> model = new HashMap<String, Object>();
    String channelName = getChannelName(request.getRequestURI());
    RSSChannel channel = rssFactory.getChannel(channelName);
    if (channel == null) {
      model.put("error", "Channel not found");
      return new ModelAndView("channelerror", "model", model);
    } else {
      model.put("channel", rssFactory.getChannel(channelName));
View Full Code Here

*
*/
public class TestRSSGenerator {
  @Test
  public void testRSSGenerator() {
    RSSChannel rsschannel = new RSSChannel();
    rsschannel.setTitle("Test Channel");
    rsschannel.setDescription("What's to describe?");
    rsschannel.setUrl("http://localhost/testchannel.xml");
   
    RSSItem item = new RSSItem();
    item.setTitle("Test item");
    item.setDescription("Test Description");
    item.setLength(1024);
View Full Code Here

TOP

Related Classes of com.webstersmalley.musiclibrary.podcaster.rss.RSSChannel

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.