001: /*
002: * ChainBuilder ESB
003: * Visual Enterprise Integration
004: *
005: * Copyright (C) 2006 Bostech Corporation
006: *
007: * This program is free software; you can redistribute it and/or modify it
008: * under the terms of the GNU General Public License as published by the
009: * Free Software Foundation; either version 2 of the License, or (at your option)
010: * any later version.
011: *
012: * This program is distributed in the hope that it will be useful,
013: * but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
014: * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
015: * for more details.
016: *
017: * You should have received a copy of the GNU General Public License along with
018: * this program; if not, write to the Free Software Foundation, Inc.,
019: * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
020: *
021: *
022: * $Id: JMSAddress.java 1206 2006-09-23 03:51:32Z elu $
023: */
024: package com.bostechcorp.cbesb.runtime.component.jms.wsdl;
025:
026: import java.io.Serializable;
027:
028: import javax.wsdl.extensions.ExtensibilityElement;
029: import javax.xml.namespace.QName;
030:
031: import com.bostechcorp.cbesb.runtime.component.util.wsdl.BaseCommonAttribute;
032:
033: /**
034: * A JMS extensibily element used to specify the parameters needed to retrieve
035: * the JMS ConnectionFactory and Destination to use.
036: *
037: */
038: public class JMSAddress extends BaseCommonAttribute implements
039: ExtensibilityElement, Serializable {
040:
041: /**
042: * Generated serial version UID
043: */
044: private static final long serialVersionUID = 1L;
045:
046: protected Boolean required;
047: protected QName elementType;
048:
049: protected String jndiInitialContextFactory;
050: protected String jndiProviderUrl;
051: protected String jndiConnectionFactoryName;
052: protected String destinationStyle;
053: protected String targetDestinationName;
054: protected String replyDestinationName;
055: protected String awaitTimeout;
056: protected String replyTimeout;
057: protected String recordsPerMessage;
058: protected String readStyle;
059: protected String recordType;
060: protected String writeStyle;
061: protected String charset;
062:
063: //JMS 1.2
064: protected boolean transactional;
065: protected boolean retry;
066: protected int maxRetryCount;
067: protected int retryInterval;
068:
069: protected boolean enableQuery;
070: protected String queryExpression;
071: protected String dLQ;
072: protected boolean saveMetadata;
073:
074: //
075: /**
076: * @return Returns the required.
077: */
078: public Boolean getRequired() {
079: return required;
080: }
081:
082: /**
083: * @param required The required to set.
084: */
085: public void setRequired(Boolean required) {
086: this .required = required;
087: }
088:
089: /**
090: * @return Returns the elementType.
091: */
092: public QName getElementType() {
093: return elementType;
094: }
095:
096: /**
097: * @param elementType The elementType to set.
098: */
099: public void setElementType(QName elementType) {
100: this .elementType = elementType;
101: }
102:
103: public String getCharset() {
104: return charset;
105: }
106:
107: public void setCharset(String charset) {
108: this .charset = charset;
109: }
110:
111: public String getDestinationStyle() {
112: return destinationStyle;
113: }
114:
115: public void setDestinationStyle(String destinationStyle) {
116: this .destinationStyle = destinationStyle;
117: }
118:
119: public String getJndiConnectionFactoryName() {
120: return jndiConnectionFactoryName;
121: }
122:
123: public void setJndiConnectionFactoryName(
124: String jndiConnectionFactoryName) {
125: this .jndiConnectionFactoryName = jndiConnectionFactoryName;
126: }
127:
128: public String getJndiInitialContextFactory() {
129: return jndiInitialContextFactory;
130: }
131:
132: public void setJndiInitialContextFactory(
133: String jndiInitialContextFactory) {
134: this .jndiInitialContextFactory = jndiInitialContextFactory;
135: }
136:
137: public String getJndiProviderUrl() {
138: return jndiProviderUrl;
139: }
140:
141: public void setJndiProviderUrl(String jndiProviderUrl) {
142: this .jndiProviderUrl = jndiProviderUrl;
143: }
144:
145: public String getReadStyle() {
146: return readStyle;
147: }
148:
149: public void setReadStyle(String readStyle) {
150: this .readStyle = readStyle;
151: }
152:
153: public String getRecordsPerMessage() {
154: return recordsPerMessage;
155: }
156:
157: public void setRecordsPerMessage(String recordsPerMessage) {
158: this .recordsPerMessage = recordsPerMessage;
159: }
160:
161: public String getRecordType() {
162: return recordType;
163: }
164:
165: public void setRecordType(String recordType) {
166: this .recordType = recordType;
167: }
168:
169: public String getReplyDestinationName() {
170: return replyDestinationName;
171: }
172:
173: public void setReplyDestinationName(String replyDestinationName) {
174: this .replyDestinationName = replyDestinationName;
175: }
176:
177: public String getAwaitTimeout() {
178: return awaitTimeout;
179: }
180:
181: public void setAwaitTimeout(String awaitTimeout) {
182: this .awaitTimeout = awaitTimeout;
183: }
184:
185: public String getReplyTimeout() {
186: return replyTimeout;
187: }
188:
189: public void setReplyTimeout(String replyTimeout) {
190: this .replyTimeout = replyTimeout;
191: }
192:
193: public String getTargetDestinationName() {
194: return targetDestinationName;
195: }
196:
197: public void setTargetDestinationName(String targetDestinationName) {
198: this .targetDestinationName = targetDestinationName;
199: }
200:
201: public String getWriteStyle() {
202: return writeStyle;
203: }
204:
205: public void setWriteStyle(String writeStyle) {
206: this .writeStyle = writeStyle;
207: }
208:
209: public String toString() {
210: return "JMSInput[" + "required=" + required + ", "
211: + "elementType=" + elementType + ", "
212: + super .toString() + ", "
213: + "jndiInitialContextFactory="
214: + jndiInitialContextFactory + ", " + "jndiProviderUrl="
215: + jndiProviderUrl + ", " + "jndiConnectionFactoryName="
216: + jndiConnectionFactoryName + ", "
217: + "destinationStyle=" + destinationStyle + ", "
218: + "targetDestinationName=" + targetDestinationName
219: + ", " + "replyDestinationName=" + replyDestinationName
220: + ", " + "awaitTimeout=" + awaitTimeout + ", "
221: + "replyTimeout=" + replyTimeout + ", "
222: + "recordsPerMessage=" + recordsPerMessage + ", "
223: + "readStyle=" + readStyle + "," + "recordType="
224: + recordType + ", " + "writeStyle=" + writeStyle + ", "
225: + "charset=" + charset + ", " + "transactional="
226: + transactional + ", " + "retry=" + retry + ", "
227: + "retry interval=" + retryInterval + ", "
228: + "retry max count=" + maxRetryCount + ", "
229: + "use selector=" + enableQuery + ", "
230: + "selector expression=" + queryExpression + ", " + "]";
231: }
232:
233: /**
234: * @return the maxRetryCount
235: */
236: public int getMaxRetryCount() {
237: return maxRetryCount;
238: }
239:
240: /**
241: * @param maxRetryCount the maxRetryCount to set
242: */
243: public void setMaxRetryCount(int maxRetryCount) {
244: this .maxRetryCount = maxRetryCount;
245: }
246:
247: /**
248: * @return the retry
249: */
250: public boolean isRetry() {
251: return retry;
252: }
253:
254: /**
255: * @param retry the retry to set
256: */
257: public void setRetry(boolean retry) {
258: this .retry = retry;
259: }
260:
261: /**
262: * @return the retryInterval
263: */
264: public int getRetryInterval() {
265: return retryInterval;
266: }
267:
268: /**
269: * @param retryInterval the retryInterval to set
270: */
271: public void setRetryInterval(int retryInterval) {
272: this .retryInterval = retryInterval;
273: }
274:
275: /**
276: * @return the transactional
277: */
278: public boolean isTransactional() {
279: return transactional;
280: }
281:
282: /**
283: * @param transactional the transactional to set
284: */
285: public void setTransactional(boolean transactional) {
286: this .transactional = transactional;
287: }
288:
289: public boolean isEnableQuery() {
290: return enableQuery;
291: }
292:
293: public void setEnableQuery(boolean enableQuery) {
294: this .enableQuery = enableQuery;
295: }
296:
297: public String getQueryExpression() {
298: return queryExpression;
299: }
300:
301: public void setQueryExpression(String queryExpression) {
302: this .queryExpression = queryExpression;
303: }
304:
305: public String getDLQ() {
306: return dLQ;
307: }
308:
309: public void setDLQ(String dlq) {
310: dLQ = dlq;
311: }
312:
313: public boolean isSaveMetadata() {
314: return saveMetadata;
315: }
316:
317: public void setSaveMetadata(boolean saveMetadata) {
318: this.saveMetadata = saveMetadata;
319: }
320:
321: }
|