org.apache.camel.component.tika.TikaEndpointConfigurer Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of camel-tika Show documentation
Show all versions of camel-tika Show documentation
This component integrates with Apache Tika to extract content and metadata from thousands of file types.
The newest version!
/* Generated by camel build tools - do NOT edit this file! */
package org.apache.camel.component.tika;
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.support.component.PropertyConfigurerSupport;
/**
* Generated by camel build tools - do NOT edit this file!
*/
@Generated("org.apache.camel.maven.packaging.EndpointSchemaGeneratorMojo")
@SuppressWarnings("unchecked")
public class TikaEndpointConfigurer extends PropertyConfigurerSupport implements GeneratedPropertyConfigurer, PropertyConfigurerGetter {
@Override
public boolean configure(CamelContext camelContext, Object obj, String name, Object value, boolean ignoreCase) {
TikaEndpoint target = (TikaEndpoint) obj;
switch (ignoreCase ? name.toLowerCase() : name) {
case "lazystartproducer":
case "lazyStartProducer": target.setLazyStartProducer(property(camelContext, boolean.class, value)); return true;
case "tikaconfig":
case "tikaConfig": target.getTikaConfiguration().setTikaConfig(property(camelContext, org.apache.tika.config.TikaConfig.class, value)); return true;
case "tikaconfiguri":
case "tikaConfigUri": target.getTikaConfiguration().setTikaConfigUri(property(camelContext, java.lang.String.class, value)); return true;
case "tikaparseoutputencoding":
case "tikaParseOutputEncoding": target.getTikaConfiguration().setTikaParseOutputEncoding(property(camelContext, java.lang.String.class, value)); return true;
case "tikaparseoutputformat":
case "tikaParseOutputFormat": target.getTikaConfiguration().setTikaParseOutputFormat(property(camelContext, org.apache.camel.component.tika.TikaParseOutputFormat.class, value)); return true;
default: return false;
}
}
@Override
public Class> getOptionType(String name, boolean ignoreCase) {
switch (ignoreCase ? name.toLowerCase() : name) {
case "lazystartproducer":
case "lazyStartProducer": return boolean.class;
case "tikaconfig":
case "tikaConfig": return org.apache.tika.config.TikaConfig.class;
case "tikaconfiguri":
case "tikaConfigUri": return java.lang.String.class;
case "tikaparseoutputencoding":
case "tikaParseOutputEncoding": return java.lang.String.class;
case "tikaparseoutputformat":
case "tikaParseOutputFormat": return org.apache.camel.component.tika.TikaParseOutputFormat.class;
default: return null;
}
}
@Override
public Object getOptionValue(Object obj, String name, boolean ignoreCase) {
TikaEndpoint target = (TikaEndpoint) obj;
switch (ignoreCase ? name.toLowerCase() : name) {
case "lazystartproducer":
case "lazyStartProducer": return target.isLazyStartProducer();
case "tikaconfig":
case "tikaConfig": return target.getTikaConfiguration().getTikaConfig();
case "tikaconfiguri":
case "tikaConfigUri": return target.getTikaConfiguration().getTikaConfigUri();
case "tikaparseoutputencoding":
case "tikaParseOutputEncoding": return target.getTikaConfiguration().getTikaParseOutputEncoding();
case "tikaparseoutputformat":
case "tikaParseOutputFormat": return target.getTikaConfiguration().getTikaParseOutputFormat();
default: return null;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy