org.apache.camel.component.azure.queue.QueueServiceEndpointConfigurer Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of camel-azure Show documentation
Show all versions of camel-azure Show documentation
Camel Microsoft Azure Components
/* Generated by org.apache.camel:apt */
package org.apache.camel.component.azure.queue;
import java.util.HashMap;
import java.util.Map;
import org.apache.camel.CamelContext;
import org.apache.camel.spi.GeneratedPropertyConfigurer;
import org.apache.camel.support.component.PropertyConfigurerSupport;
/**
* Source code generated by org.apache.camel:apt
*/
@SuppressWarnings("unchecked")
public class QueueServiceEndpointConfigurer extends PropertyConfigurerSupport implements GeneratedPropertyConfigurer {
@Override
public boolean configure(CamelContext camelContext, Object endpoint, String name, Object value, boolean ignoreCase) {
if (ignoreCase) {
return doConfigureIgnoreCase(camelContext, endpoint, name, value);
} else {
return doConfigure(camelContext, endpoint, name, value);
}
}
private static boolean doConfigure(CamelContext camelContext, Object endpoint, String name, Object value) {
switch (name) {
case "azureQueueClient": ((QueueServiceEndpoint) endpoint).getConfiguration().setAzureQueueClient(property(camelContext, com.microsoft.azure.storage.queue.CloudQueue.class, value)); return true;
case "operation": ((QueueServiceEndpoint) endpoint).getConfiguration().setOperation(property(camelContext, org.apache.camel.component.azure.queue.QueueServiceOperations.class, value)); return true;
case "messageTimeToLive": ((QueueServiceEndpoint) endpoint).getConfiguration().setMessageTimeToLive(property(camelContext, int.class, value)); return true;
case "messageVisibilityDelay": ((QueueServiceEndpoint) endpoint).getConfiguration().setMessageVisibilityDelay(property(camelContext, int.class, value)); return true;
case "queuePrefix": ((QueueServiceEndpoint) endpoint).getConfiguration().setQueuePrefix(property(camelContext, java.lang.String.class, value)); return true;
case "credentials": ((QueueServiceEndpoint) endpoint).getConfiguration().setCredentials(property(camelContext, com.microsoft.azure.storage.StorageCredentials.class, value)); return true;
case "lazyStartProducer": ((QueueServiceEndpoint) endpoint).setLazyStartProducer(property(camelContext, boolean.class, value)); return true;
case "bridgeErrorHandler": ((QueueServiceEndpoint) endpoint).setBridgeErrorHandler(property(camelContext, boolean.class, value)); return true;
case "exceptionHandler": ((QueueServiceEndpoint) endpoint).setExceptionHandler(property(camelContext, org.apache.camel.spi.ExceptionHandler.class, value)); return true;
case "exchangePattern": ((QueueServiceEndpoint) endpoint).setExchangePattern(property(camelContext, org.apache.camel.ExchangePattern.class, value)); return true;
case "synchronous": ((QueueServiceEndpoint) endpoint).setSynchronous(property(camelContext, boolean.class, value)); return true;
case "basicPropertyBinding": ((QueueServiceEndpoint) endpoint).setBasicPropertyBinding(property(camelContext, boolean.class, value)); return true;
default: return false;
}
}
private static boolean doConfigureIgnoreCase(CamelContext camelContext, Object endpoint, String name, Object value) {
switch (name.toLowerCase()) {
case "azurequeueclient": ((QueueServiceEndpoint) endpoint).getConfiguration().setAzureQueueClient(property(camelContext, com.microsoft.azure.storage.queue.CloudQueue.class, value)); return true;
case "operation": ((QueueServiceEndpoint) endpoint).getConfiguration().setOperation(property(camelContext, org.apache.camel.component.azure.queue.QueueServiceOperations.class, value)); return true;
case "messagetimetolive": ((QueueServiceEndpoint) endpoint).getConfiguration().setMessageTimeToLive(property(camelContext, int.class, value)); return true;
case "messagevisibilitydelay": ((QueueServiceEndpoint) endpoint).getConfiguration().setMessageVisibilityDelay(property(camelContext, int.class, value)); return true;
case "queueprefix": ((QueueServiceEndpoint) endpoint).getConfiguration().setQueuePrefix(property(camelContext, java.lang.String.class, value)); return true;
case "credentials": ((QueueServiceEndpoint) endpoint).getConfiguration().setCredentials(property(camelContext, com.microsoft.azure.storage.StorageCredentials.class, value)); return true;
case "lazystartproducer": ((QueueServiceEndpoint) endpoint).setLazyStartProducer(property(camelContext, boolean.class, value)); return true;
case "bridgeerrorhandler": ((QueueServiceEndpoint) endpoint).setBridgeErrorHandler(property(camelContext, boolean.class, value)); return true;
case "exceptionhandler": ((QueueServiceEndpoint) endpoint).setExceptionHandler(property(camelContext, org.apache.camel.spi.ExceptionHandler.class, value)); return true;
case "exchangepattern": ((QueueServiceEndpoint) endpoint).setExchangePattern(property(camelContext, org.apache.camel.ExchangePattern.class, value)); return true;
case "synchronous": ((QueueServiceEndpoint) endpoint).setSynchronous(property(camelContext, boolean.class, value)); return true;
case "basicpropertybinding": ((QueueServiceEndpoint) endpoint).setBasicPropertyBinding(property(camelContext, boolean.class, value)); return true;
default: return false;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy