Package org.apache.tika.config.loader
Class FrameworkConfig
java.lang.Object
org.apache.tika.config.loader.FrameworkConfig
Extracts framework-level configuration from component JSON,
separating fields prefixed with underscore from component-specific config.
Framework fields (underscore prefix):
_mime-include- Only handle these mime types_mime-exclude- Don't handle these mime types
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classParser decoration configuration for mime type filtering. -
Method Summary
Modifier and TypeMethodDescriptionstatic FrameworkConfigextract(com.fasterxml.jackson.databind.JsonNode configNode, com.fasterxml.jackson.databind.ObjectMapper objectMapper) Extracts framework config from JSON node, returning the cleaned component config.com.fasterxml.jackson.databind.JsonNode
-
Method Details
-
extract
public static FrameworkConfig extract(com.fasterxml.jackson.databind.JsonNode configNode, com.fasterxml.jackson.databind.ObjectMapper objectMapper) throws IOException Extracts framework config from JSON node, returning the cleaned component config.- Parameters:
configNode- the configuration JSON nodeobjectMapper- the Jackson ObjectMapper for serialization- Returns:
- the framework config
- Throws:
IOException- if JSON processing fails
-
getDecoration
-
getComponentConfigJson
-
getComponentConfigNode
public com.fasterxml.jackson.databind.JsonNode getComponentConfigNode()
-