Package org.apache.tika.plugins
Class PluginJson
java.lang.Object
org.apache.tika.plugins.PluginJson
Reads plugin configuration JSON (
ExtensionConfig.json()) with
TikaObjectMapperFactory.createStrictPlainMapper(): the main config loader's checks,
without Tika component serializers, so it is safe to share across the plugin classloader
boundary, provided the plugin does not bundle its own Jackson (the plugins parent pom
enforces that).-
Method Summary
Modifier and TypeMethodDescriptionstatic <T> TDeserializesjsonintotype, reporting failures as config errors.static <T> Tread(JsonConfig config, Class<T> type) Asread(String, Class), but untrusted JSON (per-request config, seeJsonConfig.trusted()) may not set anOperatorOnlyproperty oftype.
-
Method Details
-
read
Deserializesjsonintotype, reporting failures as config errors.- Throws:
TikaConfigException
-
read
Asread(String, Class), but untrusted JSON (per-request config, seeJsonConfig.trusted()) may not set anOperatorOnlyproperty oftype.- Throws:
TikaConfigException
-