com.mockrunner.mock.jms
Class MockQueueBrowser

java.lang.Object
  extended by com.mockrunner.mock.jms.MockQueueBrowser
All Implemented Interfaces:
java.io.Serializable, javax.jms.QueueBrowser

public class MockQueueBrowser
extends java.lang.Object
implements javax.jms.QueueBrowser, java.io.Serializable

Mock implementation of JMS QueueBrowser.

See Also:
Serialized Form

Constructor Summary
MockQueueBrowser(MockConnection connection, MockQueue queue)
           
MockQueueBrowser(MockConnection connection, MockQueue queue, java.lang.String messageSelector)
           
 
Method Summary
 void close()
           
 java.util.Enumeration getEnumeration()
           
 java.lang.String getMessageSelector()
           
 javax.jms.Queue getQueue()
           
 boolean isClosed()
          Returns if this browser was closed.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MockQueueBrowser

public MockQueueBrowser(MockConnection connection,
                        MockQueue queue)

MockQueueBrowser

public MockQueueBrowser(MockConnection connection,
                        MockQueue queue,
                        java.lang.String messageSelector)
Method Detail

isClosed

public boolean isClosed()
Returns if this browser was closed.

Returns:
true if this browser is closed

getQueue

public javax.jms.Queue getQueue()
                         throws javax.jms.JMSException
Specified by:
getQueue in interface javax.jms.QueueBrowser
Throws:
javax.jms.JMSException

getMessageSelector

public java.lang.String getMessageSelector()
                                    throws javax.jms.JMSException
Specified by:
getMessageSelector in interface javax.jms.QueueBrowser
Throws:
javax.jms.JMSException

getEnumeration

public java.util.Enumeration getEnumeration()
                                     throws javax.jms.JMSException
Specified by:
getEnumeration in interface javax.jms.QueueBrowser
Throws:
javax.jms.JMSException

close

public void close()
           throws javax.jms.JMSException
Specified by:
close in interface javax.jms.QueueBrowser
Throws:
javax.jms.JMSException