org.apache.camel.component.rest.swagger.RestSwaggerEndpointConfigurer Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of camel-rest-swagger Show documentation
Show all versions of camel-rest-swagger Show documentation
Camel REST support using Swagger
The newest version!
/* Generated by camel build tools - do NOT edit this file! */
package org.apache.camel.component.rest.swagger;
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.support.component.PropertyConfigurerSupport;
/**
* Generated by camel build tools - do NOT edit this file!
*/
@SuppressWarnings("unchecked")
public class RestSwaggerEndpointConfigurer extends PropertyConfigurerSupport implements GeneratedPropertyConfigurer, PropertyConfigurerGetter {
@Override
public boolean configure(CamelContext camelContext, Object obj, String name, Object value, boolean ignoreCase) {
RestSwaggerEndpoint target = (RestSwaggerEndpoint) obj;
switch (ignoreCase ? name.toLowerCase() : name) {
case "basepath":
case "basePath": target.setBasePath(property(camelContext, java.lang.String.class, value)); return true;
case "componentname":
case "componentName": target.setComponentName(property(camelContext, java.lang.String.class, value)); return true;
case "consumes": target.setConsumes(property(camelContext, java.lang.String.class, value)); return true;
case "host": target.setHost(property(camelContext, java.lang.String.class, value)); return true;
case "lazystartproducer":
case "lazyStartProducer": target.setLazyStartProducer(property(camelContext, boolean.class, value)); return true;
case "produces": target.setProduces(property(camelContext, java.lang.String.class, value)); return true;
case "resolvereferences":
case "resolveReferences": target.setResolveReferences(property(camelContext, java.lang.Boolean.class, value)); return true;
case "sslcontextparameters":
case "sslContextParameters": target.setSslContextParameters(property(camelContext, org.apache.camel.support.jsse.SSLContextParameters.class, value)); return true;
default: return false;
}
}
@Override
public Class> getOptionType(String name, boolean ignoreCase) {
switch (ignoreCase ? name.toLowerCase() : name) {
case "basepath":
case "basePath": return java.lang.String.class;
case "componentname":
case "componentName": return java.lang.String.class;
case "consumes": return java.lang.String.class;
case "host": return java.lang.String.class;
case "lazystartproducer":
case "lazyStartProducer": return boolean.class;
case "produces": return java.lang.String.class;
case "resolvereferences":
case "resolveReferences": return java.lang.Boolean.class;
case "sslcontextparameters":
case "sslContextParameters": return org.apache.camel.support.jsse.SSLContextParameters.class;
default: return null;
}
}
@Override
public Object getOptionValue(Object obj, String name, boolean ignoreCase) {
RestSwaggerEndpoint target = (RestSwaggerEndpoint) obj;
switch (ignoreCase ? name.toLowerCase() : name) {
case "basepath":
case "basePath": return target.getBasePath();
case "componentname":
case "componentName": return target.getComponentName();
case "consumes": return target.getConsumes();
case "host": return target.getHost();
case "lazystartproducer":
case "lazyStartProducer": return target.isLazyStartProducer();
case "produces": return target.getProduces();
case "resolvereferences":
case "resolveReferences": return target.getResolveReferences();
case "sslcontextparameters":
case "sslContextParameters": return target.getSslContextParameters();
default: return null;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy