Package org.apache.activemq.web.view
Class SimpleMessageRenderer
- java.lang.Object
-
- 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
Constructors Constructor Description SimpleMessageRenderer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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)
-
-
-
Method Detail
-
renderMessages
public void renderMessages(HttpServletRequest request, HttpServletResponse response, QueueBrowser browser) throws IOException, JMSException, ServletException
- Specified by:
renderMessages
in interfaceMessageRenderer
- 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 interfaceMessageRenderer
- 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
-
-