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
008: * it under the terms of the GNU General Public License as published by
009: * the Free Software Foundation; either version 2 of the License, or
010: * (at your option) 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
014: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
015: * General Public License for more details.
016: *
017: * You should have received a copy of the GNU General Public License
018: * along with this program; if not, write to the Free Software
019: * Foundation, Inc.,59 Temple Place, Suite 330, Boston, MA 02111-1307
020: * USA
021: *
022: * $Id: EmailInput.java 8272 2007-07-13 08:35:49Z ecostezki $
023: *
024: */
025: package com.bostechcorp.cbesb.runtime.component.email.wsdl;
026:
027: import java.io.Serializable;
028:
029: import javax.wsdl.extensions.ExtensibilityElement;
030: import javax.xml.namespace.QName;
031:
032: import com.bostechcorp.cbesb.runtime.component.email.ReciveProtocolEnum;
033: import com.bostechcorp.cbesb.runtime.component.util.wsdl.BaseCommonAttribute;
034:
035: /**
036: *
037: */
038: public class EmailInput extends BaseCommonAttribute implements
039: ExtensibilityElement, Serializable {
040:
041: /**
042: * Generated serial version UID.
043: */
044: private static final long serialVersionUID = 5363944500424897078L;
045:
046: /**
047: * required.
048: */
049: protected Boolean required;
050:
051: /**
052: * elementType.
053: */
054: protected QName elementType;
055:
056: /**
057: * Value determines the type of data each record contains.
058: */
059: private String recordType;
060:
061: /**
062: * Value is the name of the charset to use to read in character data.
063: */
064: private String Charset;
065:
066: /**
067: * POP3 host name or IP address
068: */
069: private String Host;
070:
071: /**
072: * Remote port number for POP3
073: */
074: private String Port;
075:
076: /**
077: * User name to connect to the host
078: */
079: private String User;
080:
081: /**
082: * Password.
083: */
084: private String Password;
085:
086: /**
087: * Directory to store attachment
088: */
089: private String attachmentDir;
090:
091: /**
092: * Polling interval to poll POP3 server
093: */
094: private String pollingInterval;
095:
096: private String schedule;
097:
098: private QName schedulerService;
099:
100: private String schedulerEndpoint;
101:
102: /**
103: * Whether to use SSL
104: */
105: private String useSSL;
106:
107: /**
108: * Value is the name of the charset to use to write character data to the reply.
109: */
110: private String replyCharset;
111:
112: /**
113: * Reply SMTP host name or IP address
114: */
115: private String replyHost;
116:
117: /**
118: * Reply remote port number for SMTP for reply
119: */
120: private String replyPort;
121:
122: /**
123: * Reply user name for SMTP
124: */
125: private String replyUser;
126:
127: /**
128: * Reply password for SMTP
129: */
130: private String replyPassword;
131:
132: /**
133: * Whether to use SSL
134: */
135: private String replyUseSSL;
136:
137: /**
138: * the protocol type for reciving emails
139: */
140: private ReciveProtocolEnum protocol;
141:
142: /**
143: * for pop3 protocol, inbox folder can be only "INBOX"
144: * but for imap we can fetch different folders
145: */
146: private String inboxFolder;
147:
148: /**
149: * @return the required
150: */
151: public Boolean getRequired() {
152: return required;
153: }
154:
155: /**
156: * @param required the required to set
157: */
158: public void setRequired(Boolean required) {
159: this .required = required;
160: }
161:
162: /**
163: * @return the elementType
164: */
165: public QName getElementType() {
166: return elementType;
167: }
168:
169: /**
170: * @param elementType the elementType to set
171: */
172: public void setElementType(QName elementType) {
173: this .elementType = elementType;
174: }
175:
176: /**
177: * @return the recordType
178: */
179: public String getRecordType() {
180: return recordType;
181: }
182:
183: /**
184: * @param recordType the recordType to set
185: */
186: public void setRecordType(String recordType) {
187: this .recordType = recordType;
188: }
189:
190: /**
191: * @return the charset
192: */
193: public String getCharset() {
194: return Charset;
195: }
196:
197: /**
198: * @param charset the charset to set
199: */
200: public void setCharset(String charset) {
201: Charset = charset;
202: }
203:
204: /**
205: * @return the host
206: */
207: public String getHost() {
208: return Host;
209: }
210:
211: /**
212: * @param host the host to set
213: */
214: public void setHost(String host) {
215: Host = host;
216: }
217:
218: /**
219: * @return the port
220: */
221: public String getPort() {
222: return Port;
223: }
224:
225: /**
226: * @param port the port to set
227: */
228: public void setPort(String port) {
229: Port = port;
230: }
231:
232: /**
233: * @return the user
234: */
235: public String getUser() {
236: return User;
237: }
238:
239: /**
240: * @param user the user to set
241: */
242: public void setUser(String user) {
243: User = user;
244: }
245:
246: /**
247: * @return the password
248: */
249: public String getPassword() {
250: return Password;
251: }
252:
253: /**
254: * @param password the password to set
255: */
256: public void setPassword(String password) {
257: Password = password;
258: }
259:
260: /**
261: * @return the attachmentDir
262: */
263: public String getAttachmentDir() {
264: return attachmentDir;
265: }
266:
267: /**
268: * @param attachmentDir the attachmentDir to set
269: */
270: public void setAttachmentDir(String attachmentDir) {
271: this .attachmentDir = attachmentDir;
272: }
273:
274: /**
275: * @return the pollingInterval
276: */
277: public String getPollingInterval() {
278: return pollingInterval;
279: }
280:
281: /**
282: * @param pollingInterval the pollingInterval to set
283: */
284: public void setPollingInterval(String pollingInterval) {
285: this .pollingInterval = pollingInterval;
286: }
287:
288: /**
289: * @return the schedule
290: */
291: public String getSchedule() {
292: return schedule;
293: }
294:
295: /**
296: * @param schedule the schedule to set
297: */
298: public void setSchedule(String schedule) {
299: this .schedule = schedule;
300: }
301:
302: /**
303: * @return the schedulerEndpoint
304: */
305: public String getSchedulerEndpoint() {
306: return schedulerEndpoint;
307: }
308:
309: /**
310: * @param schedulerEndpoint the schedulerEndpoint to set
311: */
312: public void setSchedulerEndpoint(String schedulerEndpoint) {
313: this .schedulerEndpoint = schedulerEndpoint;
314: }
315:
316: /**
317: * @return the schedulerService
318: */
319: public QName getSchedulerService() {
320: return schedulerService;
321: }
322:
323: /**
324: * @param schedulerService the schedulerService to set
325: */
326: public void setSchedulerService(QName schedulerService) {
327: this .schedulerService = schedulerService;
328: }
329:
330: /**
331: * @return the useSSL
332: */
333: public String getUseSSL() {
334: return useSSL;
335: }
336:
337: /**
338: * @param useSSL the useSSL to set
339: */
340: public void setUseSSL(String useSSL) {
341: this .useSSL = useSSL;
342: }
343:
344: /**
345: * @return the replyCharset
346: */
347: public String getReplyCharset() {
348: return replyCharset;
349: }
350:
351: /**
352: * @param replyCharset the replyCharset to set
353: */
354: public void setReplyCharset(String replyCharset) {
355: this .replyCharset = replyCharset;
356: }
357:
358: /**
359: * @return the replyHost
360: */
361: public String getReplyHost() {
362: return replyHost;
363: }
364:
365: /**
366: * @param replyHost the replyHost to set
367: */
368: public void setReplyHost(String replyHost) {
369: this .replyHost = replyHost;
370: }
371:
372: /**
373: * @return the replyPort
374: */
375: public String getReplyPort() {
376: return replyPort;
377: }
378:
379: /**
380: * @param replyPort the replyPort to set
381: */
382: public void setReplyPort(String replyPort) {
383: this .replyPort = replyPort;
384: }
385:
386: /**
387: * @return the replyUser
388: */
389: public String getReplyUser() {
390: return replyUser;
391: }
392:
393: /**
394: * @param replyUser the replyUser to set
395: */
396: public void setReplyUser(String replyUser) {
397: this .replyUser = replyUser;
398: }
399:
400: /**
401: * @return the replyPassword
402: */
403: public String getReplyPassword() {
404: return replyPassword;
405: }
406:
407: /**
408: * @param replyPassword the replyPassword to set
409: */
410: public void setReplyPassword(String replyPassword) {
411: this .replyPassword = replyPassword;
412: }
413:
414: /**
415: * @return the replyUseSSL
416: */
417: public String getReplyUseSSL() {
418: return replyUseSSL;
419: }
420:
421: /**
422: * @param replyUseSSL the replyUseSSL to set
423: */
424: public void setReplyUseSSL(String replyUseSSL) {
425: this .replyUseSSL = replyUseSSL;
426: }
427:
428: @Override
429: public String toString() {
430: return "EmailInput[" + "required=" + required + ", "
431: + "elementType=" + elementType + ", "
432: + super .toString() + ", " + "recordType=" + recordType
433: + ", " + "Charset=" + Charset + ", " + "Host=" + Host
434: + ", " + "Port=" + Port + ", " + "User=" + User + ", "
435: + "Password=" + Password + ", " + "attachmentDir="
436: + attachmentDir + ", " + "pollingInterval="
437: + pollingInterval + ", " + "useSSL=" + useSSL + ", "
438: + "replyCharset=" + replyCharset + ", " + "replyHost="
439: + replyHost + ", " + "replyPort=" + replyPort + ", "
440: + "replyUser=" + replyUser + ", " + "replyPassword="
441: + replyPassword + ", " + "replyUseSSL=" + replyUseSSL
442: + "]";
443: }
444:
445: /**
446: * @return the inboxFolder
447: */
448: public String getInboxFolder() {
449: return inboxFolder;
450: }
451:
452: /**
453: * @param inboxFolder the inboxFolder to set
454: */
455: public void setInboxFolder(String inboxFolder) {
456: this .inboxFolder = inboxFolder;
457: }
458:
459: /**
460: * @return the protocol
461: */
462: public ReciveProtocolEnum getProtocol() {
463: return protocol;
464: }
465:
466: /**
467: * @param protocol the protocol to set
468: */
469: public void setProtocol(ReciveProtocolEnum protocol) {
470: this.protocol = protocol;
471: }
472: }
|