org.apache.activemq.web.view
Class XmlMessageRenderer

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

public class XmlMessageRenderer
extends SimpleMessageRenderer

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


Constructor Summary
XmlMessageRenderer()
           
 
Method Summary
 com.thoughtworks.xstream.XStream getXstream()
           
 void renderMessage(PrintWriter writer, HttpServletRequest request, HttpServletResponse response, QueueBrowser browser, Message message)
           
 void setXstream(com.thoughtworks.xstream.XStream xstream)
           
 
Methods inherited from class org.apache.activemq.web.view.SimpleMessageRenderer
getContentType, getMaxMessages, printFooter, printHeader, renderMessages, setContentType, setMaxMessages
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XmlMessageRenderer

public XmlMessageRenderer()
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

getXstream

public com.thoughtworks.xstream.XStream getXstream()

setXstream

public void setXstream(com.thoughtworks.xstream.XStream xstream)


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