Class ConfigOverrides
java.lang.Object
org.apache.tika.pipes.core.config.ConfigOverrides
Configuration overrides for merging with or creating Tika JSON configuration.
This class provides a fluent builder API to specify fetchers, emitters, pipes configuration, and other settings that should be merged into an existing config or used to create a new one.
Example usage:
ConfigOverrides overrides = ConfigOverrides.builder()
.addFetcher("my-fetcher", "file-system-fetcher",
Map.of("basePath", "/tmp/input"))
.setPipesConfig(4, null)
.setEmitStrategy(EmitStrategy.PASSBACK_ALL)
.setPluginRoots("plugins")
.build();
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classBuilder for ConfigOverrides.static classRepresents an emitter configuration override.static classRepresents a fetcher configuration override.static classRepresents pipes configuration overrides. -
Method Summary
Modifier and TypeMethodDescriptionstatic ConfigOverrides.Builderbuilder()Catalog presets to activate, as"name": truewould; see ConfigMerger.booleanWhether the fork is told to load plugins from its classpath; see ConfigMerger.booleanWhether the fork is told its requests are the operator's own; see ConfigMerger.
-
Method Details
-
builder
-
getFetchers
-
getEmitters
-
getPipesConfig
-
getPluginRoots
-
getEmitStrategy
-
getTimeoutLimits
-
getEmbeddedLimits
-
getWriteLimit
-
isClasspathPlugins
public boolean isClasspathPlugins()Whether the fork is told to load plugins from its classpath; see ConfigMerger. -
isTrustedRequests
public boolean isTrustedRequests()Whether the fork is told its requests are the operator's own; see ConfigMerger. -
getPresets
Catalog presets to activate, as"name": truewould; see ConfigMerger.
-