KickJava   Java API By Example, From Geeks To Geeks.

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


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 Outbound Topic Bridge
23  *
24  * @org.apache.xbean.XBean
25  *
26  * @version $Revision: 1.1.1.1 $
27  */

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

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

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

50     public String JavaDoc getOutboundTopicName(){
51         return outboundTopicName;
52     }
53
54     /**
55      * @param outboundTopicName The outboundTopicName to set.
56      */

57     public void setOutboundTopicName(String JavaDoc outboundTopicName){
58         this.outboundTopicName=outboundTopicName;
59         if(this.localTopicName==null){
60             this.localTopicName=outboundTopicName;
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