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.ssh.SshComponentConfigurer Maven / Gradle / Ivy
/* Generated by camel build tools - do NOT edit this file! */
package org.apache.camel.component.ssh;
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.support.component.PropertyConfigurerSupport;
/**
* Generated by camel build tools - do NOT edit this file!
*/
@SuppressWarnings("unchecked")
public class SshComponentConfigurer extends PropertyConfigurerSupport implements GeneratedPropertyConfigurer, PropertyConfigurerGetter {
private org.apache.camel.component.ssh.SshConfiguration getOrCreateConfiguration(SshComponent target) {
if (target.getConfiguration() == null) {
target.setConfiguration(new org.apache.camel.component.ssh.SshConfiguration());
}
return target.getConfiguration();
}
@Override
public boolean configure(CamelContext camelContext, Object obj, String name, Object value, boolean ignoreCase) {
SshComponent target = (SshComponent) obj;
switch (ignoreCase ? name.toLowerCase() : name) {
case "basicpropertybinding":
case "basicPropertyBinding": target.setBasicPropertyBinding(property(camelContext, boolean.class, value)); return true;
case "bridgeerrorhandler":
case "bridgeErrorHandler": target.setBridgeErrorHandler(property(camelContext, boolean.class, value)); return true;
case "certresource":
case "certResource": getOrCreateConfiguration(target).setCertResource(property(camelContext, java.lang.String.class, value)); return true;
case "certresourcepassword":
case "certResourcePassword": getOrCreateConfiguration(target).setCertResourcePassword(property(camelContext, java.lang.String.class, value)); return true;
case "channeltype":
case "channelType": getOrCreateConfiguration(target).setChannelType(property(camelContext, java.lang.String.class, value)); return true;
case "configuration": target.setConfiguration(property(camelContext, org.apache.camel.component.ssh.SshConfiguration.class, value)); return true;
case "failonunknownhost":
case "failOnUnknownHost": getOrCreateConfiguration(target).setFailOnUnknownHost(property(camelContext, boolean.class, value)); return true;
case "keypairprovider":
case "keyPairProvider": getOrCreateConfiguration(target).setKeyPairProvider(property(camelContext, org.apache.sshd.common.keyprovider.KeyPairProvider.class, value)); return true;
case "keytype":
case "keyType": getOrCreateConfiguration(target).setKeyType(property(camelContext, java.lang.String.class, value)); return true;
case "knownhostsresource":
case "knownHostsResource": getOrCreateConfiguration(target).setKnownHostsResource(property(camelContext, java.lang.String.class, value)); return true;
case "lazystartproducer":
case "lazyStartProducer": target.setLazyStartProducer(property(camelContext, boolean.class, value)); return true;
case "password": getOrCreateConfiguration(target).setPassword(property(camelContext, java.lang.String.class, value)); return true;
case "pollcommand":
case "pollCommand": getOrCreateConfiguration(target).setPollCommand(property(camelContext, java.lang.String.class, value)); return true;
case "shellprompt":
case "shellPrompt": getOrCreateConfiguration(target).setShellPrompt(property(camelContext, java.lang.String.class, value)); return true;
case "sleepforshellprompt":
case "sleepForShellPrompt": getOrCreateConfiguration(target).setSleepForShellPrompt(property(camelContext, long.class, value)); return true;
case "timeout": getOrCreateConfiguration(target).setTimeout(property(camelContext, long.class, value)); return true;
case "username": getOrCreateConfiguration(target).setUsername(property(camelContext, java.lang.String.class, value)); return true;
default: return false;
}
}
@Override
public Map getAllOptions(Object target) {
Map answer = new CaseInsensitiveMap();
answer.put("basicPropertyBinding", boolean.class);
answer.put("bridgeErrorHandler", boolean.class);
answer.put("certResource", java.lang.String.class);
answer.put("certResourcePassword", java.lang.String.class);
answer.put("channelType", java.lang.String.class);
answer.put("configuration", org.apache.camel.component.ssh.SshConfiguration.class);
answer.put("failOnUnknownHost", boolean.class);
answer.put("keyPairProvider", org.apache.sshd.common.keyprovider.KeyPairProvider.class);
answer.put("keyType", java.lang.String.class);
answer.put("knownHostsResource", java.lang.String.class);
answer.put("lazyStartProducer", boolean.class);
answer.put("password", java.lang.String.class);
answer.put("pollCommand", java.lang.String.class);
answer.put("shellPrompt", java.lang.String.class);
answer.put("sleepForShellPrompt", long.class);
answer.put("timeout", long.class);
answer.put("username", java.lang.String.class);
return answer;
}
@Override
public Object getOptionValue(Object obj, String name, boolean ignoreCase) {
SshComponent target = (SshComponent) obj;
switch (ignoreCase ? name.toLowerCase() : name) {
case "basicpropertybinding":
case "basicPropertyBinding": return target.isBasicPropertyBinding();
case "bridgeerrorhandler":
case "bridgeErrorHandler": return target.isBridgeErrorHandler();
case "certresource":
case "certResource": return getOrCreateConfiguration(target).getCertResource();
case "certresourcepassword":
case "certResourcePassword": return getOrCreateConfiguration(target).getCertResourcePassword();
case "channeltype":
case "channelType": return getOrCreateConfiguration(target).getChannelType();
case "configuration": return target.getConfiguration();
case "failonunknownhost":
case "failOnUnknownHost": return getOrCreateConfiguration(target).isFailOnUnknownHost();
case "keypairprovider":
case "keyPairProvider": return getOrCreateConfiguration(target).getKeyPairProvider();
case "keytype":
case "keyType": return getOrCreateConfiguration(target).getKeyType();
case "knownhostsresource":
case "knownHostsResource": return getOrCreateConfiguration(target).getKnownHostsResource();
case "lazystartproducer":
case "lazyStartProducer": return target.isLazyStartProducer();
case "password": return getOrCreateConfiguration(target).getPassword();
case "pollcommand":
case "pollCommand": return getOrCreateConfiguration(target).getPollCommand();
case "shellprompt":
case "shellPrompt": return getOrCreateConfiguration(target).getShellPrompt();
case "sleepforshellprompt":
case "sleepForShellPrompt": return getOrCreateConfiguration(target).getSleepForShellPrompt();
case "timeout": return getOrCreateConfiguration(target).getTimeout();
case "username": return getOrCreateConfiguration(target).getUsername();
default: return null;
}
}
}