All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.apache.camel.component.file.remote.FtpsEndpointConfigurer Maven / Gradle / Ivy

There is a newer version: 4.8.0
Show newest version
/* Generated by camel build tools - do NOT edit this file! */
package org.apache.camel.component.file.remote;

import java.util.Map;

import org.apache.camel.CamelContext;
import org.apache.camel.spi.GeneratedPropertyConfigurer;
import org.apache.camel.spi.PropertyConfigurerGetter;
import org.apache.camel.util.CaseInsensitiveMap;
import org.apache.camel.component.file.remote.FtpEndpointConfigurer;

/**
 * Generated by camel build tools - do NOT edit this file!
 */
@SuppressWarnings("unchecked")
public class FtpsEndpointConfigurer extends FtpEndpointConfigurer implements GeneratedPropertyConfigurer, PropertyConfigurerGetter {

    @Override
    public boolean configure(CamelContext camelContext, Object obj, String name, Object value, boolean ignoreCase) {
        FtpsEndpoint target = (FtpsEndpoint) obj;
        switch (ignoreCase ? name.toLowerCase() : name) {
        case "disablesecuredatachanneldefaults":
        case "disableSecureDataChannelDefaults": target.getConfiguration().setDisableSecureDataChannelDefaults(property(camelContext, boolean.class, value)); return true;
        case "execpbsz":
        case "execPbsz": target.getConfiguration().setExecPbsz(property(camelContext, java.lang.Long.class, value)); return true;
        case "execprot":
        case "execProt": target.getConfiguration().setExecProt(property(camelContext, java.lang.String.class, value)); return true;
        case "ftpclientkeystoreparameters":
        case "ftpClientKeyStoreParameters": target.setFtpClientKeyStoreParameters(property(camelContext, java.util.Map.class, value)); return true;
        case "ftpclienttruststoreparameters":
        case "ftpClientTrustStoreParameters": target.setFtpClientTrustStoreParameters(property(camelContext, java.util.Map.class, value)); return true;
        case "implicit": target.getConfiguration().setImplicit(property(camelContext, boolean.class, value)); return true;
        case "securityprotocol":
        case "securityProtocol": target.getConfiguration().setSecurityProtocol(property(camelContext, java.lang.String.class, value)); return true;
        case "sslcontextparameters":
        case "sslContextParameters": target.setSslContextParameters(property(camelContext, org.apache.camel.support.jsse.SSLContextParameters.class, value)); return true;
        default: return super.configure(camelContext, obj, name, value, ignoreCase);
        }
    }

    @Override
    public Map getAllOptions(Object target) {
        Map answer = super.getAllOptions(target);
        answer.put("disableSecureDataChannelDefaults", boolean.class);
        answer.put("execPbsz", java.lang.Long.class);
        answer.put("execProt", java.lang.String.class);
        answer.put("ftpClientKeyStoreParameters", java.util.Map.class);
        answer.put("ftpClientTrustStoreParameters", java.util.Map.class);
        answer.put("implicit", boolean.class);
        answer.put("securityProtocol", java.lang.String.class);
        answer.put("sslContextParameters", org.apache.camel.support.jsse.SSLContextParameters.class);
        return answer;
    }

    @Override
    public Object getOptionValue(Object obj, String name, boolean ignoreCase) {
        FtpsEndpoint target = (FtpsEndpoint) obj;
        switch (ignoreCase ? name.toLowerCase() : name) {
        case "disablesecuredatachanneldefaults":
        case "disableSecureDataChannelDefaults": return target.getConfiguration().isDisableSecureDataChannelDefaults();
        case "execpbsz":
        case "execPbsz": return target.getConfiguration().getExecPbsz();
        case "execprot":
        case "execProt": return target.getConfiguration().getExecProt();
        case "ftpclientkeystoreparameters":
        case "ftpClientKeyStoreParameters": return target.getFtpClientKeyStoreParameters();
        case "ftpclienttruststoreparameters":
        case "ftpClientTrustStoreParameters": return target.getFtpClientTrustStoreParameters();
        case "implicit": return target.getConfiguration().isImplicit();
        case "securityprotocol":
        case "securityProtocol": return target.getConfiguration().getSecurityProtocol();
        case "sslcontextparameters":
        case "sslContextParameters": return target.getSslContextParameters();
        default: return super.getOptionValue(obj, name, ignoreCase);
        }
    }
}





© 2015 - 2024 Weber Informatics LLC | Privacy Policy