01: /*
02: * Copyright 2005 Joe Walker
03: *
04: * Licensed under the Apache License, Version 2.0 (the "License");
05: * you may not use this file except in compliance with the License.
06: * You may obtain a copy of the License at
07: *
08: * http://www.apache.org/licenses/LICENSE-2.0
09: *
10: * Unless required by applicable law or agreed to in writing, software
11: * distributed under the License is distributed on an "AS IS" BASIS,
12: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13: * See the License for the specific language governing permissions and
14: * limitations under the License.
15: */
16: package org.directwebremoting.jms;
17:
18: import javax.jms.JMSException;
19: import javax.jms.Topic;
20:
21: /**
22: * A {@link Topic} for DWR
23: * @author Joe Walker [joe at getahead dot ltd dot uk]
24: */
25: public class DwrTopic implements Topic {
26: /**
27: * @see javax.jms.Session#createTopic(String)
28: */
29: public DwrTopic(String topicName) {
30: this .topicName = topicName;
31: }
32:
33: /* (non-Javadoc)
34: * @see javax.jms.Topic#getTopicName()
35: */
36: public String getTopicName() throws JMSException {
37: return topicName;
38: }
39:
40: /**
41: * The name of this topic
42: */
43: private String topicName;
44: }
|