org.apache.activemq.web.view
Class RssMessageRenderer

java.lang.Object
  extended by org.apache.activemq.web.view.SimpleMessageRenderer
      extended by org.apache.activemq.web.view.RssMessageRenderer
All Implemented Interfaces:
MessageRenderer

public class RssMessageRenderer
extends SimpleMessageRenderer

This renderer uses XStream to render messages on a queue as full XML elements


Constructor Summary
RssMessageRenderer()
           
 
Method Summary
protected  com.sun.syndication.feed.synd.SyndEntry createEntry(QueueBrowser browser, Message message, HttpServletRequest request)
           
protected  com.sun.syndication.feed.synd.SyndContent createEntryContent(QueueBrowser browser, Message message, HttpServletRequest request)
           
protected  com.sun.syndication.feed.synd.SyndFeed createFeed(QueueBrowser browser, HttpServletRequest request)
           
 String getDescription()
           
 String getEntryContentType()
           
 com.sun.syndication.feed.synd.SyndFeed getFeed(QueueBrowser browser, HttpServletRequest request)
           
 String getFeedType()
           
protected  void printFooter(PrintWriter writer, QueueBrowser browser, HttpServletRequest request)
           
protected  void printHeader(PrintWriter writer, QueueBrowser browser, HttpServletRequest request)
           
 void renderMessage(PrintWriter writer, HttpServletRequest request, HttpServletResponse response, QueueBrowser browser, Message message)
           
 void setDescription(String feedDescription)
           
 void setEntryContentType(String entryContentType)
           
 void setFeedType(String feedType)
           
 
Methods inherited from class org.apache.activemq.web.view.SimpleMessageRenderer
getContentType, getMaxMessages, renderMessages, setContentType, setMaxMessages
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RssMessageRenderer

public RssMessageRenderer()
Method Detail

renderMessage

public void renderMessage(PrintWriter writer,
                          HttpServletRequest request,
                          HttpServletResponse response,
                          QueueBrowser browser,
                          Message message)
                   throws JMSException
Specified by:
renderMessage in interface MessageRenderer
Overrides:
renderMessage in class SimpleMessageRenderer
Throws:
JMSException

getDescription

public String getDescription()

setDescription

public void setDescription(String feedDescription)

getFeedType

public String getFeedType()

setFeedType

public void setFeedType(String feedType)

getEntryContentType

public String getEntryContentType()

setEntryContentType

public void setEntryContentType(String entryContentType)

printFooter

protected void printFooter(PrintWriter writer,
                           QueueBrowser browser,
                           HttpServletRequest request)
                    throws IOException,
                           JMSException,
                           ServletException
Overrides:
printFooter in class SimpleMessageRenderer
Throws:
IOException
JMSException
ServletException

printHeader

protected void printHeader(PrintWriter writer,
                           QueueBrowser browser,
                           HttpServletRequest request)
                    throws IOException,
                           JMSException
Overrides:
printHeader in class SimpleMessageRenderer
Throws:
IOException
JMSException

getFeed

public com.sun.syndication.feed.synd.SyndFeed getFeed(QueueBrowser browser,
                                                      HttpServletRequest request)
                                               throws JMSException
Throws:
JMSException

createEntry

protected com.sun.syndication.feed.synd.SyndEntry createEntry(QueueBrowser browser,
                                                              Message message,
                                                              HttpServletRequest request)
                                                       throws JMSException
Throws:
JMSException

createEntryContent

protected com.sun.syndication.feed.synd.SyndContent createEntryContent(QueueBrowser browser,
                                                                       Message message,
                                                                       HttpServletRequest request)
                                                                throws JMSException
Throws:
JMSException

createFeed

protected com.sun.syndication.feed.synd.SyndFeed createFeed(QueueBrowser browser,
                                                            HttpServletRequest request)
                                                     throws JMSException
Throws:
JMSException


Copyright © 2005–2013 The Apache Software Foundation. All rights reserved.