001 /**
002 * Licensed to the Apache Software Foundation (ASF) under one or more
003 * contributor license agreements. See the NOTICE file distributed with
004 * this work for additional information regarding copyright ownership.
005 * The ASF licenses this file to You under the Apache License, Version 2.0
006 * (the "License"); you may not use this file except in compliance with
007 * the License. You may obtain a copy of the License at
008 *
009 * http://www.apache.org/licenses/LICENSE-2.0
010 *
011 * Unless required by applicable law or agreed to in writing, software
012 * distributed under the License is distributed on an "AS IS" BASIS,
013 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
014 * See the License for the specific language governing permissions and
015 * limitations under the License.
016 */
017 package org.apache.activemq.network.jms;
018
019 /**
020 * Create an Inbound Topic Bridge
021 *
022 * @org.apache.xbean.XBean
023 *
024 *
025 */
026 public class InboundTopicBridge extends TopicBridge {
027
028 String inboundTopicName;
029 String localTopicName;
030
031 /**
032 * Constructor that takes a foriegn destination as an argument
033 *
034 * @param inboundTopicName
035 */
036 public InboundTopicBridge(String inboundTopicName) {
037 this.inboundTopicName = inboundTopicName;
038 this.localTopicName = inboundTopicName;
039 }
040
041 /**
042 * Default Contructor
043 */
044 public InboundTopicBridge() {
045 }
046
047 /**
048 * @return Returns the outboundTopicName.
049 */
050 public String getInboundTopicName() {
051 return inboundTopicName;
052 }
053
054 /**
055 * @param inboundTopicName
056 */
057 public void setInboundTopicName(String inboundTopicName) {
058 this.inboundTopicName = inboundTopicName;
059 if (this.localTopicName == null) {
060 this.localTopicName = inboundTopicName;
061 }
062 }
063
064 /**
065 * @return the localTopicName
066 */
067 public String getLocalTopicName() {
068 return localTopicName;
069 }
070
071 /**
072 * @param localTopicName the localTopicName to set
073 */
074 public void setLocalTopicName(String localTopicName) {
075 this.localTopicName = localTopicName;
076 }
077
078 }