org.apache.camel.component.netty.http.NettyHttpComponentConfigurer Maven / Gradle / Ivy
The newest version!
/* Generated by camel build tools - do NOT edit this file! */
package org.apache.camel.component.netty.http;
import javax.annotation.processing.Generated;
import java.util.Map;
import org.apache.camel.CamelContext;
import org.apache.camel.spi.ExtendedPropertyConfigurerGetter;
import org.apache.camel.spi.PropertyConfigurerGetter;
import org.apache.camel.spi.ConfigurerStrategy;
import org.apache.camel.spi.GeneratedPropertyConfigurer;
import org.apache.camel.util.CaseInsensitiveMap;
import org.apache.camel.component.netty.NettyComponentConfigurer;
/**
* Generated by camel build tools - do NOT edit this file!
*/
@Generated("org.apache.camel.maven.packaging.EndpointSchemaGeneratorMojo")
@SuppressWarnings("unchecked")
public class NettyHttpComponentConfigurer extends NettyComponentConfigurer implements GeneratedPropertyConfigurer, PropertyConfigurerGetter {
@Override
public boolean configure(CamelContext camelContext, Object obj, String name, Object value, boolean ignoreCase) {
NettyHttpComponent target = (NettyHttpComponent) obj;
switch (ignoreCase ? name.toLowerCase() : name) {
case "headerfilterstrategy":
case "headerFilterStrategy": target.setHeaderFilterStrategy(property(camelContext, org.apache.camel.spi.HeaderFilterStrategy.class, value)); return true;
case "muteexception":
case "muteException": target.setMuteException(property(camelContext, boolean.class, value)); return true;
case "nettyhttpbinding":
case "nettyHttpBinding": target.setNettyHttpBinding(property(camelContext, org.apache.camel.component.netty.http.NettyHttpBinding.class, value)); return true;
case "securityconfiguration":
case "securityConfiguration": target.setSecurityConfiguration(property(camelContext, org.apache.camel.component.netty.http.NettyHttpSecurityConfiguration.class, value)); return true;
default: return super.configure(camelContext, obj, name, value, ignoreCase);
}
}
@Override
public Class> getOptionType(String name, boolean ignoreCase) {
switch (ignoreCase ? name.toLowerCase() : name) {
case "headerfilterstrategy":
case "headerFilterStrategy": return org.apache.camel.spi.HeaderFilterStrategy.class;
case "muteexception":
case "muteException": return boolean.class;
case "nettyhttpbinding":
case "nettyHttpBinding": return org.apache.camel.component.netty.http.NettyHttpBinding.class;
case "securityconfiguration":
case "securityConfiguration": return org.apache.camel.component.netty.http.NettyHttpSecurityConfiguration.class;
default: return super.getOptionType(name, ignoreCase);
}
}
@Override
public Object getOptionValue(Object obj, String name, boolean ignoreCase) {
NettyHttpComponent target = (NettyHttpComponent) obj;
switch (ignoreCase ? name.toLowerCase() : name) {
case "headerfilterstrategy":
case "headerFilterStrategy": return target.getHeaderFilterStrategy();
case "muteexception":
case "muteException": return target.isMuteException();
case "nettyhttpbinding":
case "nettyHttpBinding": return target.getNettyHttpBinding();
case "securityconfiguration":
case "securityConfiguration": return target.getSecurityConfiguration();
default: return super.getOptionValue(obj, name, ignoreCase);
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy