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

org.apache.camel.component.netty.NettyEndpointUriFactory Maven / Gradle / Ivy

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

import javax.annotation.processing.Generated;
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!
 */
@Generated("org.apache.camel.maven.packaging.GenerateEndpointUriFactoryMojo")
public class NettyEndpointUriFactory extends org.apache.camel.support.component.EndpointUriFactorySupport implements EndpointUriFactory {

    private static final String BASE = ":protocol://host:port";

    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<>(77);
        props.add("allowDefaultCodec");
        props.add("allowSerializedHeaders");
        props.add("autoAppendDelimiter");
        props.add("backlog");
        props.add("bossCount");
        props.add("bossGroup");
        props.add("bridgeErrorHandler");
        props.add("broadcast");
        props.add("channelGroup");
        props.add("clientInitializerFactory");
        props.add("clientMode");
        props.add("connectTimeout");
        props.add("correlationManager");
        props.add("decoderMaxLineLength");
        props.add("decoders");
        props.add("delimiter");
        props.add("disconnect");
        props.add("disconnectOnNoReply");
        props.add("enabledProtocols");
        props.add("encoders");
        props.add("encoding");
        props.add("exceptionHandler");
        props.add("exchangePattern");
        props.add("host");
        props.add("hostnameVerification");
        props.add("keepAlive");
        props.add("keyStoreFile");
        props.add("keyStoreFormat");
        props.add("keyStoreResource");
        props.add("lazyChannelCreation");
        props.add("lazyStartProducer");
        props.add("nativeTransport");
        props.add("needClientAuth");
        props.add("nettyServerBootstrapFactory");
        props.add("networkInterface");
        props.add("noReplyLogLevel");
        props.add("options");
        props.add("passphrase");
        props.add("port");
        props.add("producerPoolBlockWhenExhausted");
        props.add("producerPoolEnabled");
        props.add("producerPoolMaxIdle");
        props.add("producerPoolMaxTotal");
        props.add("producerPoolMaxWait");
        props.add("producerPoolMinEvictableIdle");
        props.add("producerPoolMinIdle");
        props.add("protocol");
        props.add("receiveBufferSize");
        props.add("receiveBufferSizePredictor");
        props.add("reconnect");
        props.add("reconnectInterval");
        props.add("requestTimeout");
        props.add("reuseAddress");
        props.add("reuseChannel");
        props.add("securityProvider");
        props.add("sendBufferSize");
        props.add("serverClosedChannelExceptionCaughtLogLevel");
        props.add("serverExceptionCaughtLogLevel");
        props.add("serverInitializerFactory");
        props.add("ssl");
        props.add("sslClientCertHeaders");
        props.add("sslContextParameters");
        props.add("sslHandler");
        props.add("sync");
        props.add("synchronous");
        props.add("tcpNoDelay");
        props.add("textline");
        props.add("transferExchange");
        props.add("trustStoreFile");
        props.add("trustStoreResource");
        props.add("udpByteArrayCodec");
        props.add("udpConnectionlessSending");
        props.add("unixDomainSocketPath");
        props.add("useByteBuf");
        props.add("usingExecutorService");
        props.add("workerCount");
        props.add("workerGroup");
        PROPERTY_NAMES = Collections.unmodifiableSet(props);
        Set secretProps = new HashSet<>(1);
        secretProps.add("passphrase");
        SECRET_PROPERTY_NAMES = Collections.unmodifiableSet(secretProps);
        Set prefixes = new HashSet<>(1);
        prefixes.add("option.");
        MULTI_VALUE_PREFIXES = Collections.unmodifiableSet(prefixes);
    }

    @Override
    public boolean isEnabled(String scheme) {
        return "netty".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, "protocol", null, true, copy);
        uri = buildPathParameter(syntax, uri, "host", null, true, copy);
        uri = buildPathParameter(syntax, uri, "port", 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