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: FtpOutputExtension.java 3667 2006-12-12 09:04:24Z jzhang $
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 FtpOutputExtension {
37:
38: public static final String NS_URI_FTP = "http://cbesb.bostechcorp.com/wsdl/ftp/1.0";
39:
40: public static final String ELEM_OUTPUT = "output";
41:
42: public static final String FTP_HOST = "ftpHost";
43: public static final String FTP_USER = "ftpUser";
44: public static final String FTP_PASSWORD = "ftpPassword";
45: public static final String CMD_FILE = "cmdFile";
46: public static final String FTP_CONNECT_MODE = "ftpConnectMode";
47: public static final String FTP_TRANSFER_MODE = "ftpTransferMode";
48: public static final String DEST_DIR = "destDir";
49: public static final String TRANSFER_DIR = "transferDir";
50: public static final String STAGE_DIR = "stageDir";
51: public static final String CHARSET = "charset";
52: public static final String WRITE_STYLE = "writeStyle";
53: public static final String FILE_PATTERN = "filePattern";
54: public static final String FILE_COMPLETE_ACTION = "fileCompleteAction";
55: public static final String ARCHIVE_DIR = "archiveDir";
56: public static final String ARCHIVE_FILE_PATTERN = "archiveFilePattern";
57:
58: public static final QName Q_ELEM_FTP_OUTPUT = new QName(NS_URI_FTP,
59: ELEM_OUTPUT);
60: public static final QName Q_ELEM_FTP_BINDING = new QName(
61: NS_URI_FTP, Constants.ELEM_BINDING);
62:
63: public static void register(ExtensionRegistry registry) {
64: registry.registerDeserializer(javax.wsdl.Port.class,
65: Q_ELEM_FTP_OUTPUT, new FtpOutputDeserializer());
66: registry.mapExtensionTypes(javax.wsdl.Port.class,
67: Q_ELEM_FTP_OUTPUT, FtpOutput.class);
68: registry.registerDeserializer(javax.wsdl.Binding.class,
69: Q_ELEM_FTP_BINDING, new FtpBindingDeserializer());
70: registry.mapExtensionTypes(javax.wsdl.Binding.class,
71: Q_ELEM_FTP_BINDING, FtpBinding.class);
72: }
73: }
|