KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > activemq > network > jms > InboundTopicBridge


1 /**
2  *
3  * Licensed to the Apache Software Foundation (ASF) under one or more
4  * contributor license agreements. See the NOTICE file distributed with
5  * this work for additional information regarding copyright ownership.
6  * The ASF licenses this file to You under the Apache License, Version 2.0
7  * (the "License"); you may not use this file except in compliance with
8  * the License. You may obtain a copy of the License at
9  *
10  * http://www.apache.org/licenses/LICENSE-2.0
11  *
12  * Unless required by applicable law or agreed to in writing, software
13  * distributed under the License is distributed on an "AS IS" BASIS,
14  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15  * See the License for the specific language governing permissions and
16  * limitations under the License.
17  */

18 package org.apache.activemq.network.jms;
19
20
21 /**
22  * Create an Inbound Topic Bridge
23  *
24  * @org.apache.xbean.XBean
25  *
26  * @version $Revision: 1.1.1.1 $
27  */

28 public class InboundTopicBridge extends TopicBridge{
29        
30     String JavaDoc inboundTopicName;
31     String JavaDoc localTopicName;
32     /**
33      * Constructor that takes a foriegn destination as an argument
34      * @param inboundTopicName
35      */

36     public InboundTopicBridge(String JavaDoc inboundTopicName){
37         this.inboundTopicName = inboundTopicName;
38         this.localTopicName = inboundTopicName;
39     }
40     
41     /**
42      * Default Contructor
43      */

44     public InboundTopicBridge(){
45     }
46
47     /**
48      * @return Returns the outboundTopicName.
49      */

50     public String JavaDoc getInboundTopicName(){
51         return inboundTopicName;
52     }
53
54     /**
55      * @param inboundTopicName
56      */

57     public void setInboundTopicName(String JavaDoc inboundTopicName){
58         this.inboundTopicName=inboundTopicName;
59         if(this.localTopicName==null){
60             this.localTopicName = inboundTopicName;
61         }
62     }
63
64     /**
65      * @return the localTopicName
66      */

67     public String JavaDoc getLocalTopicName(){
68         return localTopicName;
69     }
70
71     /**
72      * @param localTopicName the localTopicName to set
73      */

74     public void setLocalTopicName(String JavaDoc localTopicName){
75         this.localTopicName=localTopicName;
76     }
77     
78 }
79
Popular Tags