FtpOutputExtension.java :  » ESB » cbesb-1.2 » com » bostechcorp » cbesb » runtime » component » ftp » wsdl » Java Open Source

Java Open Source » ESB » cbesb 1.2 
cbesb 1.2 » com » bostechcorp » cbesb » runtime » component » ftp » wsdl » FtpOutputExtension.java
/*
 * ChainBuilder ESB
 *          Visual Enterprise Integration
 *
 * Copyright (C) 2006 Bostech Corporation
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
 * General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc.,59 Temple Place, Suite 330, Boston, MA 02111-1307
 * USA
 *
 *
 * $Id: FtpOutputExtension.java 3667 2006-12-12 09:04:24Z jzhang $
 */
package com.bostechcorp.cbesb.runtime.component.ftp.wsdl;

import javax.wsdl.extensions.ExtensionRegistry;
import javax.xml.namespace.QName;

import com.ibm.wsdl.Constants;

/**
 * @author j.zhang
 * @version 1.0.0
 */
public class FtpOutputExtension {

    public static final String NS_URI_FTP = "http://cbesb.bostechcorp.com/wsdl/ftp/1.0";

    public static final String ELEM_OUTPUT = "output";

    public static final String FTP_HOST = "ftpHost";
    public static final String FTP_USER = "ftpUser";
    public static final String FTP_PASSWORD = "ftpPassword";
    public static final String CMD_FILE = "cmdFile";
    public static final String FTP_CONNECT_MODE = "ftpConnectMode";
    public static final String FTP_TRANSFER_MODE = "ftpTransferMode";
    public static final String DEST_DIR = "destDir";
    public static final String TRANSFER_DIR = "transferDir";
    public static final String STAGE_DIR = "stageDir";
    public static final String CHARSET = "charset";
    public static final String WRITE_STYLE = "writeStyle";
    public static final String FILE_PATTERN = "filePattern";
    public static final String FILE_COMPLETE_ACTION = "fileCompleteAction";
    public static final String ARCHIVE_DIR = "archiveDir";
    public static final String ARCHIVE_FILE_PATTERN = "archiveFilePattern";

    public static final QName Q_ELEM_FTP_OUTPUT = new QName(NS_URI_FTP, ELEM_OUTPUT);
    public static final QName Q_ELEM_FTP_BINDING = new QName(NS_URI_FTP, Constants.ELEM_BINDING);

    public static void register(ExtensionRegistry registry) {
        registry.registerDeserializer(javax.wsdl.Port.class, Q_ELEM_FTP_OUTPUT, new FtpOutputDeserializer());
        registry.mapExtensionTypes(javax.wsdl.Port.class, Q_ELEM_FTP_OUTPUT, FtpOutput.class);
        registry.registerDeserializer(javax.wsdl.Binding.class, Q_ELEM_FTP_BINDING, new FtpBindingDeserializer());
        registry.mapExtensionTypes(javax.wsdl.Binding.class, Q_ELEM_FTP_BINDING, FtpBinding.class);
    }
}
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.