Package org.wso2.carbon.andes.ui.client
Class QueueBrowserClient
java.lang.Object
org.wso2.carbon.andes.ui.client.QueueBrowserClient
The client class which is used to create a QueueConnection in order to browse the content of a selected queue.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionQueueBrowserClient(String nameOfQueue, String userName, String accessKey) Constructor - create a new browser instance for the given queue as given user. -
Method Summary
Modifier and TypeMethodDescriptionReturn a lazy-loading iterator (java.util.Enumeration) of the messages of the given queue.voidClose browser instance on this queue of this user.getMsgContentType(javax.jms.Message queueMessage) Determines the type of the JMS messagegetMsgProperties(javax.jms.Message queueMessage) Get message details of the input javax.jms.Message object.
-
Field Details
-
QPID_ICF
- See Also:
-
-
Constructor Details
-
QueueBrowserClient
public QueueBrowserClient(String nameOfQueue, String userName, String accessKey) throws FileNotFoundException, XMLStreamException, org.wso2.andes.kernel.AndesException Constructor - create a new browser instance for the given queue as given user.- Parameters:
nameOfQueue- name of queueuserName- User's username as per user storeaccessKey- as generated by andes authentication service for the user.- Throws:
FileNotFoundExceptionXMLStreamExceptionorg.wso2.andes.kernel.AndesException
-
-
Method Details
-
browseQueue
Return a lazy-loading iterator (java.util.Enumeration) of the messages of the given queue.- Returns:
- java.util.Enumeration
-
closeBrowser
public void closeBrowser() throws javax.jms.JMSExceptionClose browser instance on this queue of this user.- Throws:
javax.jms.JMSException
-
getMsgProperties
Get message details of the input javax.jms.Message object.- Parameters:
queueMessage- javax.jms.Message (ideally fetched through the Queue Browser Enumeration)- Returns:
- String representation of the message
- Throws:
javax.jms.JMSException
-
getMsgContentType
Determines the type of the JMS message- Parameters:
queueMessage- - input message- Returns:
- type of the message as a string
-