Class FrameworkConfig

java.lang.Object
org.apache.tika.config.loader.FrameworkConfig

public class FrameworkConfig extends Object
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
  • 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 node
      objectMapper - the Jackson ObjectMapper for serialization
      Returns:
      the framework config
      Throws:
      IOException - if JSON processing fails
    • getDecoration

      public FrameworkConfig.ParserDecoration getDecoration()
    • getComponentConfigJson

      public JsonConfig getComponentConfigJson()
    • getComponentConfigNode

      public com.fasterxml.jackson.databind.JsonNode getComponentConfigNode()