Package org.apache.tika.pipes.fetcher.fs
Class FileSystemFetcherConfig
java.lang.Object
org.apache.tika.pipes.fetcher.fs.FileSystemFetcherConfig
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanIf true, allows fetchKey to be an absolute path when basePath is not set.booleanstatic FileSystemFetcherConfigsetAllowAbsolutePaths(boolean allowAbsolutePaths) setBasePath(String basePath) setExtractFileSystemMetadata(boolean extractFileSystemMetadata)
-
Constructor Details
-
FileSystemFetcherConfig
public FileSystemFetcherConfig()
-
-
Method Details
-
load
- Throws:
TikaConfigException
-
isExtractFileSystemMetadata
public boolean isExtractFileSystemMetadata() -
setExtractFileSystemMetadata
-
getBasePath
-
setBasePath
-
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
-