Class FileSystemFetcherConfig

java.lang.Object
org.apache.tika.pipes.fetcher.fs.FileSystemFetcherConfig

public class FileSystemFetcherConfig extends Object
  • Constructor Details

    • FileSystemFetcherConfig

      public FileSystemFetcherConfig()
  • Method Details

    • load

      public static FileSystemFetcherConfig load(String json) throws TikaConfigException
      Throws:
      TikaConfigException
    • isExtractFileSystemMetadata

      public boolean isExtractFileSystemMetadata()
    • setExtractFileSystemMetadata

      public FileSystemFetcherConfig setExtractFileSystemMetadata(boolean extractFileSystemMetadata)
    • getBasePath

      public String getBasePath()
    • setBasePath

      public FileSystemFetcherConfig setBasePath(String basePath)
    • isAllowAbsolutePaths

      public boolean isAllowAbsolutePaths()
      If true, allows fetchKey to be an absolute path when basePath is not set. This suppresses the security warning about unrestricted file access. Use this when you intentionally want to allow fetching from any path.
    • setAllowAbsolutePaths

      public FileSystemFetcherConfig setAllowAbsolutePaths(boolean allowAbsolutePaths)