org.apache.activemq.web
Class MessageQuery

java.lang.Object
  extended by org.apache.activemq.web.BrokerFacade
      extended by org.apache.activemq.web.DestinationFacade
          extended by org.apache.activemq.web.QueueBrowseQuery
              extended by org.apache.activemq.web.MessageQuery
All Implemented Interfaces:
org.springframework.beans.factory.DisposableBean

public class MessageQuery
extends QueueBrowseQuery

Allow the user to browse a message on a queue by its ID

Version:
$Revision: 426366 $

Constructor Summary
MessageQuery(BrokerService brokerService, SessionPool sessionPool)
           
 
Method Summary
protected  java.util.Map createMapBody(javax.jms.MapMessage mapMessage)
           
 java.lang.Object getBody()
           
 java.lang.String getId()
           
 javax.jms.Message getMessage()
           
 java.util.Map getPropertiesMap()
           
 void setId(java.lang.String id)
           
 void setMessage(javax.jms.Message message)
           
 
Methods inherited from class org.apache.activemq.web.QueueBrowseQuery
createBrowser, destroy, getBrowser, getQueue, getSelector, getSession, isQueue, setBrowser, setQueue, setSelector
 
Methods inherited from class org.apache.activemq.web.DestinationFacade
addDestination, createDestination, getJMSDestination, getJMSDestinationType, getValidDestination, redirectToBrowseView, redirectToRequest, removeDestination, setJMSDestination, setJMSDestinationType, toString
 
Methods inherited from class org.apache.activemq.web.BrokerFacade
getBroker, getBrokerAdmin, getBrokerService, getDurableTopicSubscribers, getManagedBroker, getManagedObjects, getManagementContext, getQueues, getTopics
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MessageQuery

public MessageQuery(BrokerService brokerService,
                    SessionPool sessionPool)
             throws javax.jms.JMSException
Throws:
javax.jms.JMSException
Method Detail

getId

public java.lang.String getId()

setId

public void setId(java.lang.String id)

setMessage

public void setMessage(javax.jms.Message message)

getMessage

public javax.jms.Message getMessage()
                             throws javax.jms.JMSException
Throws:
javax.jms.JMSException

getBody

public java.lang.Object getBody()
                         throws javax.jms.JMSException
Throws:
javax.jms.JMSException

getPropertiesMap

public java.util.Map getPropertiesMap()
                               throws javax.jms.JMSException
Throws:
javax.jms.JMSException

createMapBody

protected java.util.Map createMapBody(javax.jms.MapMessage mapMessage)
                               throws javax.jms.JMSException
Throws:
javax.jms.JMSException


Copyright © 2009 Apache Software Foundation. All Rights Reserved.