Class FileSystemFetcherConfig
- java.lang.Object
-
- org.apache.tika.pipes.fetcher.config.AbstractConfig
-
- org.apache.tika.pipes.fetcher.fs.config.FileSystemFetcherConfig
-
public class FileSystemFetcherConfig extends AbstractConfig
-
-
Constructor Summary
Constructors Constructor Description FileSystemFetcherConfig()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetBasePath()booleanisAllowAbsolutePaths()If true, allows fetchKey to be an absolute path when basePath is not set.booleanisExtractFileSystemMetadata()FileSystemFetcherConfigsetAllowAbsolutePaths(boolean allowAbsolutePaths)FileSystemFetcherConfigsetBasePath(String basePath)FileSystemFetcherConfigsetExtractFileSystemMetadata(boolean extractFileSystemMetadata)
-
-
-
Method Detail
-
getBasePath
public String getBasePath()
-
setBasePath
public FileSystemFetcherConfig setBasePath(String basePath)
-
isExtractFileSystemMetadata
public boolean isExtractFileSystemMetadata()
-
setExtractFileSystemMetadata
public FileSystemFetcherConfig setExtractFileSystemMetadata(boolean extractFileSystemMetadata)
-
isAllowAbsolutePaths
public boolean isAllowAbsolutePaths()
If true, allows fetchKey to be an absolute path when basePath is not set. This explicitly acknowledges the security risk of unrestricted file access. The default isfalse.
-
setAllowAbsolutePaths
public FileSystemFetcherConfig setAllowAbsolutePaths(boolean allowAbsolutePaths)
-
-