All Downloads are FREE. Search and download functionalities are using the official Maven repository.
Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
org.apache.camel.component.file.remote.FtpsEndpointConfigurer Maven / Gradle / Ivy
/* 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.ExtendedPropertyConfigurerGetter;
import org.apache.camel.spi.PropertyConfigurerGetter;
import org.apache.camel.spi.ConfigurerStrategy;
import org.apache.camel.spi.GeneratedPropertyConfigurer;
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 Class> getOptionType(String name, boolean ignoreCase) {
switch (ignoreCase ? name.toLowerCase() : name) {
case "disablesecuredatachanneldefaults":
case "disableSecureDataChannelDefaults": return boolean.class;
case "execpbsz":
case "execPbsz": return java.lang.Long.class;
case "execprot":
case "execProt": return java.lang.String.class;
case "ftpclientkeystoreparameters":
case "ftpClientKeyStoreParameters": return java.util.Map.class;
case "ftpclienttruststoreparameters":
case "ftpClientTrustStoreParameters": return java.util.Map.class;
case "implicit": return boolean.class;
case "securityprotocol":
case "securityProtocol": return java.lang.String.class;
case "sslcontextparameters":
case "sslContextParameters": return org.apache.camel.support.jsse.SSLContextParameters.class;
default: return super.getOptionType(name, ignoreCase);
}
}
@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);
}
}
@Override
public Object getCollectionValueType(Object target, String name, boolean ignoreCase) {
switch (ignoreCase ? name.toLowerCase() : name) {
case "ftpclientkeystoreparameters":
case "ftpClientKeyStoreParameters": return java.lang.Object.class;
case "ftpclienttruststoreparameters":
case "ftpClientTrustStoreParameters": return java.lang.Object.class;
default: return super.getCollectionValueType(target, name, ignoreCase);
}
}
}