org.apache.activemq.web.view
Class SimpleMessageRenderer

java.lang.Object
  extended by org.apache.activemq.web.view.SimpleMessageRenderer
All Implemented Interfaces:
MessageRenderer
Direct Known Subclasses:
RssMessageRenderer, XmlMessageRenderer

public class SimpleMessageRenderer
extends Object
implements MessageRenderer

A simple rendering of the contents of a queue appear as a list of message elements which just contain an ID attribute.


Constructor Summary
SimpleMessageRenderer()
           
 
Method Summary
 String getContentType()
           
 int getMaxMessages()
           
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 renderMessages(HttpServletRequest request, HttpServletResponse response, QueueBrowser browser)
           
 void setContentType(String contentType)
           
 void setMaxMessages(int maxMessages)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleMessageRenderer

public SimpleMessageRenderer()
Method Detail

renderMessages

public void renderMessages(HttpServletRequest request,
                           HttpServletResponse response,
                           QueueBrowser browser)
                    throws IOException,
                           JMSException,
                           ServletException
Specified by:
renderMessages in interface MessageRenderer
Throws:
IOException
JMSException
ServletException

renderMessage

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

getMaxMessages

public int getMaxMessages()

setMaxMessages

public void setMaxMessages(int maxMessages)

getContentType

public String getContentType()

setContentType

public void setContentType(String contentType)

printHeader

protected void printHeader(PrintWriter writer,
                           QueueBrowser browser,
                           HttpServletRequest request)
                    throws IOException,
                           JMSException,
                           ServletException
Throws:
IOException
JMSException
ServletException

printFooter

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


Copyright © 2005-2013 The Apache Software Foundation. All Rights Reserved.