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

org.apache.camel.component.rabbitmq.RabbitMQEndpointUriFactory Maven / Gradle / Ivy

The newest version!
/* Generated by camel build tools - do NOT edit this file! */
package org.apache.camel.component.rabbitmq;

import java.net.URISyntaxException;
import java.util.Collections;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Map;
import java.util.Set;

import org.apache.camel.spi.EndpointUriFactory;

/**
 * Generated by camel build tools - do NOT edit this file!
 */
public class RabbitMQEndpointUriFactory extends org.apache.camel.support.component.EndpointUriFactorySupport implements EndpointUriFactory {

    private static final String BASE = ":exchangeName";

    private static final Set PROPERTY_NAMES;
    private static final Set SECRET_PROPERTY_NAMES;
    private static final Set MULTI_VALUE_PREFIXES;
    static {
        Set props = new HashSet<>(67);
        props.add("additionalHeaders");
        props.add("additionalProperties");
        props.add("addresses");
        props.add("allowCustomHeaders");
        props.add("allowMessageBodySerialization");
        props.add("allowNullHeaders");
        props.add("args");
        props.add("autoAck");
        props.add("autoDelete");
        props.add("automaticRecoveryEnabled");
        props.add("bridgeEndpoint");
        props.add("bridgeErrorHandler");
        props.add("channelPoolMaxSize");
        props.add("channelPoolMaxWait");
        props.add("clientProperties");
        props.add("concurrentConsumers");
        props.add("connectionFactory");
        props.add("connectionFactoryExceptionHandler");
        props.add("connectionTimeout");
        props.add("consumerTag");
        props.add("deadLetterExchange");
        props.add("deadLetterExchangeType");
        props.add("deadLetterQueue");
        props.add("deadLetterRoutingKey");
        props.add("declare");
        props.add("durable");
        props.add("exceptionHandler");
        props.add("exchangeName");
        props.add("exchangePattern");
        props.add("exchangeType");
        props.add("exclusive");
        props.add("exclusiveConsumer");
        props.add("guaranteedDeliveries");
        props.add("hostname");
        props.add("immediate");
        props.add("lazyStartProducer");
        props.add("mandatory");
        props.add("networkRecoveryInterval");
        props.add("passive");
        props.add("password");
        props.add("portNumber");
        props.add("prefetchCount");
        props.add("prefetchEnabled");
        props.add("prefetchGlobal");
        props.add("prefetchSize");
        props.add("publisherAcknowledgements");
        props.add("publisherAcknowledgementsTimeout");
        props.add("queue");
        props.add("reQueue");
        props.add("recoverFromDeclareException");
        props.add("requestTimeout");
        props.add("requestTimeoutCheckerInterval");
        props.add("requestedChannelMax");
        props.add("requestedFrameMax");
        props.add("requestedHeartbeat");
        props.add("routingKey");
        props.add("skipDlqDeclare");
        props.add("skipExchangeDeclare");
        props.add("skipQueueBind");
        props.add("skipQueueDeclare");
        props.add("sslProtocol");
        props.add("threadPoolSize");
        props.add("topologyRecoveryEnabled");
        props.add("transferException");
        props.add("trustManager");
        props.add("username");
        props.add("vhost");
        PROPERTY_NAMES = Collections.unmodifiableSet(props);
        Set secretProps = new HashSet<>(2);
        secretProps.add("password");
        secretProps.add("username");
        SECRET_PROPERTY_NAMES = Collections.unmodifiableSet(secretProps);
        Set prefixes = new HashSet<>(1);
        prefixes.add("arg.");
        MULTI_VALUE_PREFIXES = Collections.unmodifiableSet(prefixes);
    }

    @Override
    public boolean isEnabled(String scheme) {
        return "rabbitmq".equals(scheme);
    }

    @Override
    public String buildUri(String scheme, Map properties, boolean encode) throws URISyntaxException {
        String syntax = scheme + BASE;
        String uri = syntax;

        Map copy = new HashMap<>(properties);

        uri = buildPathParameter(syntax, uri, "exchangeName", null, true, copy);
        uri = buildQueryParameters(uri, copy, encode);
        return uri;
    }

    @Override
    public Set propertyNames() {
        return PROPERTY_NAMES;
    }

    @Override
    public Set secretPropertyNames() {
        return SECRET_PROPERTY_NAMES;
    }

    @Override
    public Set multiValuePrefixes() {
        return MULTI_VALUE_PREFIXES;
    }

    @Override
    public boolean isLenientProperties() {
        return false;
    }
}





© 2015 - 2025 Weber Informatics LLC | Privacy Policy