KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jboss > jms > server > standard > QueueBrowserEndpoint


1 /*
2  * JBoss, the OpenSource J2EE webOS
3  *
4  * Distributable under LGPL license.
5  * See terms of license at gnu.org.
6  */

7 package org.jboss.jms.server.standard;
8
9 import java.util.List JavaDoc;
10
11 import org.jboss.jms.server.BrowserEndpoint;
12 import org.jboss.jms.server.list.MessageList;
13
14 /**
15  * A queue browser endpoint
16  *
17  * @author <a HREF="mailto:adrian@jboss.org>Adrian Brock</a>
18  * @version $Revision: 1.1 $
19  */

20 public class QueueBrowserEndpoint
21    implements BrowserEndpoint
22 {
23    // Constants -----------------------------------------------------
24

25    // Attributes ----------------------------------------------------
26

27    /** The message list */
28    private MessageList list;
29
30    /** The selector */
31    private String JavaDoc selector;
32
33    // Static --------------------------------------------------------
34

35    // Constructors --------------------------------------------------
36

37    public QueueBrowserEndpoint(MessageList list, String JavaDoc selector)
38    {
39       this.list = list;
40       this.selector = selector;
41    }
42
43    // Public --------------------------------------------------------
44

45    // BrowserEndpoint implementation --------------------------------
46

47    public List JavaDoc browse()
48       throws Exception JavaDoc
49    {
50       return list.browse(selector);
51    }
52
53    // Protected ------------------------------------------------------
54

55    // Package Private ------------------------------------------------
56

57    // Private --------------------------------------------------------
58

59    // Inner Classes --------------------------------------------------
60

61 }
62
Popular Tags