Class FileSystemFetcher

    • Constructor Detail

      • FileSystemFetcher

        public FileSystemFetcher()
    • Method Detail

      • getBasePath

        public Path getBasePath()
        Returns:
        the basePath or null if no base path was set
      • setBasePath

        @Field
        public void setBasePath​(String basePath)
        Default behavior si that clients will send in relative paths, this must be set to allow this fetcher to fetch the full path.
        Parameters:
        basePath -
      • setExtractFileSystemMetadata

        @Field
        public void setExtractFileSystemMetadata​(boolean extractFileSystemMetadata)
        Extract file system metadata (created, modified, accessed) when fetching file. The default is false.
        Parameters:
        extractFileSystemMetadata -
      • setAllowAbsolutePaths

        @Field
        public void setAllowAbsolutePaths​(boolean allowAbsolutePaths)
        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 is false.
        Parameters:
        allowAbsolutePaths -
      • isAllowAbsolutePaths

        public boolean isAllowAbsolutePaths()