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 java.lang.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
 java.lang.String getContentType()
           
 int getMaxMessages()
           
protected  void printFooter(java.io.PrintWriter writer, javax.jms.QueueBrowser browser, javax.servlet.http.HttpServletRequest request)
           
protected  void printHeader(java.io.PrintWriter writer, javax.jms.QueueBrowser browser, javax.servlet.http.HttpServletRequest request)
           
 void renderMessage(java.io.PrintWriter writer, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, javax.jms.QueueBrowser browser, javax.jms.Message message)
           
 void renderMessages(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, javax.jms.QueueBrowser browser)
           
 void setContentType(java.lang.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(javax.servlet.http.HttpServletRequest request,
                           javax.servlet.http.HttpServletResponse response,
                           javax.jms.QueueBrowser browser)
                    throws java.io.IOException,
                           javax.jms.JMSException,
                           javax.servlet.ServletException
Specified by:
renderMessages in interface MessageRenderer
Throws:
java.io.IOException
javax.jms.JMSException
javax.servlet.ServletException

renderMessage

public void renderMessage(java.io.PrintWriter writer,
                          javax.servlet.http.HttpServletRequest request,
                          javax.servlet.http.HttpServletResponse response,
                          javax.jms.QueueBrowser browser,
                          javax.jms.Message message)
                   throws javax.jms.JMSException,
                          javax.servlet.ServletException
Specified by:
renderMessage in interface MessageRenderer
Throws:
javax.jms.JMSException
javax.servlet.ServletException

getMaxMessages

public int getMaxMessages()

setMaxMessages

public void setMaxMessages(int maxMessages)

getContentType

public java.lang.String getContentType()

setContentType

public void setContentType(java.lang.String contentType)

printHeader

protected void printHeader(java.io.PrintWriter writer,
                           javax.jms.QueueBrowser browser,
                           javax.servlet.http.HttpServletRequest request)
                    throws java.io.IOException,
                           javax.jms.JMSException,
                           javax.servlet.ServletException
Throws:
java.io.IOException
javax.jms.JMSException
javax.servlet.ServletException

printFooter

protected void printFooter(java.io.PrintWriter writer,
                           javax.jms.QueueBrowser browser,
                           javax.servlet.http.HttpServletRequest request)
                    throws java.io.IOException,
                           javax.jms.JMSException,
                           javax.servlet.ServletException
Throws:
java.io.IOException
javax.jms.JMSException
javax.servlet.ServletException


Copyright © 2005-2011 FuseSource, Corp.. All Rights Reserved.