Package com.uphea.rss

Examples of com.uphea.rss.FeedWriter


  }

  @Override
  public void render(ActionRequest request, RssData resultObject) throws Exception {
    Feed feed = resultObject.getFeed();
    FeedWriter feedWriter = new FeedWriter(feed);

    HttpServletResponse response = request.getHttpServletResponse();
    response.setContentType(rssMimeType);
    response.setCharacterEncoding(feed.getEncoding());
    Writer out = null;
    try {
      out = response.getWriter();
      feedWriter.write(out);
    } catch (Exception ex) {
      log.error("Could not write feed.", ex);
    } finally {
      StreamUtil.close(out);
    }
View Full Code Here

TOP

Related Classes of com.uphea.rss.FeedWriter

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.