KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > servicemix > jms > wsdl > JmsAddress


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

17 package org.apache.servicemix.jms.wsdl;
18
19 import java.io.Serializable JavaDoc;
20
21 import javax.wsdl.extensions.ExtensibilityElement;
22 import javax.xml.namespace.QName JavaDoc;
23
24 /**
25  * A JMS extensibily element used to specify the parameters needed
26  * to retrieve the JMS ConnectionFactory and Destination to use.
27  *
28  * @author <a HREF="mailto:gnodet [at] gmail.com">Guillaume Nodet</a>
29  * @version $Revision: 433626 $
30  */

31 public class JmsAddress implements ExtensibilityElement, Serializable JavaDoc {
32
33     /**
34      * Generated serial version UID
35      */

36     private static final long serialVersionUID = -3118867357618475968L;
37     
38     protected Boolean JavaDoc required;
39     protected QName JavaDoc elementType;
40     
41     protected String JavaDoc initialContextFactory;
42     protected String JavaDoc jndiProviderURL;
43     protected String JavaDoc destinationStyle;
44     protected String JavaDoc jndiConnectionFactoryName;
45     protected String JavaDoc jndiDestinationName;
46     protected String JavaDoc jmsProviderDestinationName;
47     
48     /**
49      * @return Returns the elementType.
50      */

51     public QName JavaDoc getElementType() {
52         return elementType;
53     }
54     /**
55      * @param elementType The elementType to set.
56      */

57     public void setElementType(QName JavaDoc elementType) {
58         this.elementType = elementType;
59     }
60     /**
61      * @return Returns the required.
62      */

63     public Boolean JavaDoc getRequired() {
64         return required;
65     }
66     /**
67      * @param required The required to set.
68      */

69     public void setRequired(Boolean JavaDoc required) {
70         this.required = required;
71     }
72     /**
73      * @return Returns the destinationStyle.
74      */

75     public String JavaDoc getDestinationStyle() {
76         return destinationStyle;
77     }
78     /**
79      * @param destinationStyle The destinationStyle to set.
80      */

81     public void setDestinationStyle(String JavaDoc destinationStyle) {
82         this.destinationStyle = destinationStyle;
83     }
84     /**
85      * @return Returns the initialContextFactory.
86      */

87     public String JavaDoc getInitialContextFactory() {
88         return initialContextFactory;
89     }
90     /**
91      * @param initialContextFactory The initialContextFactory to set.
92      */

93     public void setInitialContextFactory(String JavaDoc initialContextFactory) {
94         this.initialContextFactory = initialContextFactory;
95     }
96     /**
97      * @return Returns the jmsProviderDestinationName.
98      */

99     public String JavaDoc getJmsProviderDestinationName() {
100         return jmsProviderDestinationName;
101     }
102     /**
103      * @param jmsProviderDestinationName The jmsProviderDestinationName to set.
104      */

105     public void setJmsProviderDestinationName(String JavaDoc jmsProviderDestinationName) {
106         this.jmsProviderDestinationName = jmsProviderDestinationName;
107     }
108     /**
109      * @return Returns the jndiConnectionFactoryName.
110      */

111     public String JavaDoc getJndiConnectionFactoryName() {
112         return jndiConnectionFactoryName;
113     }
114     /**
115      * @param jndiConnectionFactoryName The jndiConnectionFactoryName to set.
116      */

117     public void setJndiConnectionFactoryName(String JavaDoc jndiConnectionFactoryName) {
118         this.jndiConnectionFactoryName = jndiConnectionFactoryName;
119     }
120     /**
121      * @return Returns the jndiDestinationName.
122      */

123     public String JavaDoc getJndiDestinationName() {
124         return jndiDestinationName;
125     }
126     /**
127      * @param jndiDestinationName The jndiDestinationName to set.
128      */

129     public void setJndiDestinationName(String JavaDoc jndiDestinationName) {
130         this.jndiDestinationName = jndiDestinationName;
131     }
132     /**
133      * @return Returns the jndiProviderURL.
134      */

135     public String JavaDoc getJndiProviderURL() {
136         return jndiProviderURL;
137     }
138     /**
139      * @param jndiProviderURL The jndiProviderURL to set.
140      */

141     public void setJndiProviderURL(String JavaDoc jndiProviderURL) {
142         this.jndiProviderURL = jndiProviderURL;
143     }
144     
145     public String JavaDoc toString() {
146         return "JmsAddress[" +
147                     "required=" + required + ", " +
148                     "elementType=" + elementType + ", " +
149                     "initialContextFactory=" + initialContextFactory + ", " +
150                     "jndiProviderURL=" + jndiProviderURL + ", " +
151                     "destinationStyle=" + destinationStyle + ", " +
152                     "jndiConnectionFactoryName=" + jndiConnectionFactoryName + ", " +
153                     "jndiDestinationName=" + jndiDestinationName + ", " +
154                     "jmsProviderDestinationName=" + jmsProviderDestinationName + "]";
155     }
156     
157     
158 }
159
Popular Tags