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

org.apache.camel.component.azure.queue.QueueServiceEndpointConfigurer Maven / Gradle / Ivy

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

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 QueueServiceEndpointConfigurer extends PropertyConfigurerSupport implements GeneratedPropertyConfigurer, PropertyConfigurerGetter {

    @Override
    public boolean configure(CamelContext camelContext, Object obj, String name, Object value, boolean ignoreCase) {
        QueueServiceEndpoint target = (QueueServiceEndpoint) obj;
        switch (ignoreCase ? name.toLowerCase() : name) {
        case "azurequeueclient":
        case "azureQueueClient": target.getConfiguration().setAzureQueueClient(property(camelContext, com.microsoft.azure.storage.queue.CloudQueue.class, value)); return true;
        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 "credentials": target.getConfiguration().setCredentials(property(camelContext, com.microsoft.azure.storage.StorageCredentials.class, value)); return true;
        case "credentialsaccountkey":
        case "credentialsAccountKey": target.getConfiguration().setCredentialsAccountKey(property(camelContext, java.lang.String.class, value)); return true;
        case "credentialsaccountname":
        case "credentialsAccountName": target.getConfiguration().setCredentialsAccountName(property(camelContext, java.lang.String.class, value)); return true;
        case "exceptionhandler":
        case "exceptionHandler": target.setExceptionHandler(property(camelContext, org.apache.camel.spi.ExceptionHandler.class, value)); return true;
        case "exchangepattern":
        case "exchangePattern": target.setExchangePattern(property(camelContext, org.apache.camel.ExchangePattern.class, value)); return true;
        case "lazystartproducer":
        case "lazyStartProducer": target.setLazyStartProducer(property(camelContext, boolean.class, value)); return true;
        case "messagetimetolive":
        case "messageTimeToLive": target.getConfiguration().setMessageTimeToLive(property(camelContext, int.class, value)); return true;
        case "messagevisibilitydelay":
        case "messageVisibilityDelay": target.getConfiguration().setMessageVisibilityDelay(property(camelContext, int.class, value)); return true;
        case "operation": target.getConfiguration().setOperation(property(camelContext, org.apache.camel.component.azure.queue.QueueServiceOperations.class, value)); return true;
        case "queueprefix":
        case "queuePrefix": target.getConfiguration().setQueuePrefix(property(camelContext, java.lang.String.class, value)); return true;
        case "synchronous": target.setSynchronous(property(camelContext, boolean.class, value)); return true;
        case "validateclienturi":
        case "validateClientURI": target.getConfiguration().setValidateClientURI(property(camelContext, boolean.class, value)); return true;
        default: return false;
        }
    }

    @Override
    public Map getAllOptions(Object target) {
        Map answer = new CaseInsensitiveMap();
        answer.put("azureQueueClient", com.microsoft.azure.storage.queue.CloudQueue.class);
        answer.put("basicPropertyBinding", boolean.class);
        answer.put("bridgeErrorHandler", boolean.class);
        answer.put("credentials", com.microsoft.azure.storage.StorageCredentials.class);
        answer.put("credentialsAccountKey", java.lang.String.class);
        answer.put("credentialsAccountName", java.lang.String.class);
        answer.put("exceptionHandler", org.apache.camel.spi.ExceptionHandler.class);
        answer.put("exchangePattern", org.apache.camel.ExchangePattern.class);
        answer.put("lazyStartProducer", boolean.class);
        answer.put("messageTimeToLive", int.class);
        answer.put("messageVisibilityDelay", int.class);
        answer.put("operation", org.apache.camel.component.azure.queue.QueueServiceOperations.class);
        answer.put("queuePrefix", java.lang.String.class);
        answer.put("synchronous", boolean.class);
        answer.put("validateClientURI", boolean.class);
        return answer;
    }

    @Override
    public Object getOptionValue(Object obj, String name, boolean ignoreCase) {
        QueueServiceEndpoint target = (QueueServiceEndpoint) obj;
        switch (ignoreCase ? name.toLowerCase() : name) {
        case "azurequeueclient":
        case "azureQueueClient": return target.getConfiguration().getAzureQueueClient();
        case "basicpropertybinding":
        case "basicPropertyBinding": return target.isBasicPropertyBinding();
        case "bridgeerrorhandler":
        case "bridgeErrorHandler": return target.isBridgeErrorHandler();
        case "credentials": return target.getConfiguration().getCredentials();
        case "credentialsaccountkey":
        case "credentialsAccountKey": return target.getConfiguration().getCredentialsAccountKey();
        case "credentialsaccountname":
        case "credentialsAccountName": return target.getConfiguration().getCredentialsAccountName();
        case "exceptionhandler":
        case "exceptionHandler": return target.getExceptionHandler();
        case "exchangepattern":
        case "exchangePattern": return target.getExchangePattern();
        case "lazystartproducer":
        case "lazyStartProducer": return target.isLazyStartProducer();
        case "messagetimetolive":
        case "messageTimeToLive": return target.getConfiguration().getMessageTimeToLive();
        case "messagevisibilitydelay":
        case "messageVisibilityDelay": return target.getConfiguration().getMessageVisibilityDelay();
        case "operation": return target.getConfiguration().getOperation();
        case "queueprefix":
        case "queuePrefix": return target.getConfiguration().getQueuePrefix();
        case "synchronous": return target.isSynchronous();
        case "validateclienturi":
        case "validateClientURI": return target.getConfiguration().isValidateClientURI();
        default: return null;
        }
    }
}





© 2015 - 2024 Weber Informatics LLC | Privacy Policy