01: /*
02: * ChainBuilder ESB
03: * Visual Enterprise Integration
04: *
05: * Copyright (C) 2006 Bostech Corporation
06: *
07: * This program is free software; you can redistribute it and/or modify
08: * it under the terms of the GNU General Public License as published by
09: * the Free Software Foundation; either version 2 of the License, or
10: * (at your option) any later version.
11: *
12: * This program is distributed in the hope that it will be useful,
13: * but WITHOUT ANY WARRANTY; without even the implied warranty of
14: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15: * General Public License for more details.
16: *
17: * You should have received a copy of the GNU General Public License
18: * along with this program; if not, write to the Free Software
19: * Foundation, Inc.,59 Temple Place, Suite 330, Boston, MA 02111-1307
20: * USA
21: *
22: *
23: * $Id: FtpInputExtension.java 7227 2007-05-03 19:19:05Z mpreston $
24: */
25: package com.bostechcorp.cbesb.runtime.component.ftp.wsdl;
26:
27: import javax.wsdl.extensions.ExtensionRegistry;
28: import javax.xml.namespace.QName;
29:
30: import com.ibm.wsdl.Constants;
31:
32: /**
33: * @author j.zhang
34: * @version 1.0.0
35: */
36: public class FtpInputExtension {
37:
38: public static final String NS_URI_FTP = "http://cbesb.bostechcorp.com/wsdl/ftp/1.0";
39:
40: public static final String ELEM_INPUT = "input";
41:
42: // defaultMep
43: public static final String FTP_HOST = "ftpHost";
44: public static final String FTP_USER = "ftpUser";
45: public static final String FTP_PASSWORD = "ftpPassword";
46: public static final String CMD_FILE = "cmdFile";
47: public static final String FTP_CONNECT_MODE = "ftpConnectMode";
48: public static final String FTP_TRANSFER_MODE = "ftpTransferMode";
49: public static final String SOURCE_DIR = "sourceDir";
50: public static final String TRANSFER_DIR = "transferDir";
51: public static final String STAGE_DIR = "stageDir";
52: public static final String ARCHIVE_DIR = "archiveDir";
53: public static final String HOLD_DIR = "holdDir";
54: public static final String SCAN_INTERVAL = "scanInterval";
55: public static final String SCHEDULE = "schedule";
56: public static final String SCHEDULER_SERVICE = "schedulerService";
57: public static final String SCHEDULER_ENDPOINT = "schedulerEndpoint";
58: public static final String HOLD = "hold";
59: public static final String FILE_PATTERN = "filePattern";
60: public static final String TWO_PASS = "twoPass";
61: public static final String TWO_PASS_INTERVAL = "twoPassInterval";
62: public static final String FILE_COMPLETE_ACTION = "fileCompleteAction";
63: public static final String RECORDS_PER_MESSAGE = "recordsPerMessage";
64: public static final String READ_STYLE = "readStyle";
65: public static final String RECORD_TYPE = "recordType";
66: public static final String CHARSET = "charset";
67: public static final String ARCHIVE_FILE_PATTERN = "archiveFilePattern";
68: public static final String REPLY_FTP_HOST = "replyFtpHost";
69: public static final String REPLY_FTP_USER = "replyFtpUser";
70: public static final String REPLY_FTP_PASSWORD = "replyFtpPassword";
71: public static final String REPLY_FTP_CONNECT_MODE = "replyFtpConnectMode";
72: public static final String REPLY_FTP_TRANSFER_MODE = "replyFtpTransferMode";
73: public static final String REPLY_DIR = "replyDir";
74: public static final String REPLY_CHARSET = "replyCharset";
75: public static final String REPLY_WRITE_STYLE = "replyWriteStyle";
76: public static final String REPLY_FILE_PATTERN = "replyFilePattern";
77: public static final String MATCH_MODE = "matchMode";
78: public static final QName Q_ELEM_FTP_INPUT = new QName(NS_URI_FTP,
79: ELEM_INPUT);
80:
81: public static final QName Q_ELEM_FTP_BINDING = new QName(
82: NS_URI_FTP, Constants.ELEM_BINDING);
83:
84: /**
85: * @param registry ExtensionRegistry
86: */
87: public static void register(ExtensionRegistry registry) {
88: registry.registerDeserializer(javax.wsdl.Port.class,
89: Q_ELEM_FTP_INPUT, new FtpInputDeserializer());
90: registry.mapExtensionTypes(javax.wsdl.Port.class,
91: Q_ELEM_FTP_INPUT, FtpInput.class);
92: registry.registerDeserializer(javax.wsdl.Binding.class,
93: Q_ELEM_FTP_BINDING, new FtpBindingDeserializer());
94: registry.mapExtensionTypes(javax.wsdl.Binding.class,
95: Q_ELEM_FTP_BINDING, FtpBinding.class);
96: }
97: }
|