Class FileWatchEndpointBuilderFactory.FileWatchHeaderNameBuilder
java.lang.Object
org.apache.camel.builder.endpoint.dsl.FileWatchEndpointBuilderFactory.FileWatchHeaderNameBuilder
- Enclosing interface:
FileWatchEndpointBuilderFactory
The builder of headers' name for the File Watch component.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionA boolean option specifying whether the consumed file denotes an absolute path or not.The absolute path to the file.Type of event.A Long value containing the last modified timestamp of the file.fileName()
Name of the consumed file as a relative file path with offset from the starting directory configured on the endpoint.The name of the file that has been consumed.Only the file name (the name with no leading paths).The parent path.filePath()
The file path.The relative path.
-
Constructor Details
-
FileWatchHeaderNameBuilder
public FileWatchHeaderNameBuilder()
-
-
Method Details
-
fileEventType
Type of event. Possible values: CREATE, DELETE, MODIFY. The option is a:String
type. Group: consumer- Returns:
- the name of the header
FileEventType
.
-
fileNameOnly
Only the file name (the name with no leading paths). The option is a:String
type. Group: consumer- Returns:
- the name of the header
FileNameOnly
.
-
fileAbsolute
A boolean option specifying whether the consumed file denotes an absolute path or not. Should normally be false for relative paths. Absolute paths should normally not be used but we added to the move option to allow moving files to absolute paths. But can be used elsewhere as well. The option is a:Boolean
type. Group: consumer- Returns:
- the name of the header
FileAbsolute
.
-
fileAbsolutePath
The absolute path to the file. For relative files this path holds the relative path instead. The option is a:String
type. Group: consumer- Returns:
- the name of the header
FileAbsolutePath
.
-
filePath
The file path. For relative files this is the starting directory the relative filename. For absolute files this is the absolute path. The option is a:String
type. Group: consumer- Returns:
- the name of the header
FilePath
.
-
fileName
Name of the consumed file as a relative file path with offset from the starting directory configured on the endpoint. The option is a:String
type. Group: consumer- Returns:
- the name of the header
FileName
.
-
fileRelativePath
The relative path. The option is a:String
type. Group: consumer- Returns:
- the name of the header
FileRelativePath
.
-
fileNameConsumed
The name of the file that has been consumed. The option is a:String
type. Group: consumer- Returns:
- the name of the header
FileNameConsumed
.
-
fileParent
The parent path. The option is a:String
type. Group: consumer- Returns:
- the name of the header
FileParent
.
-
fileLastModified
A Long value containing the last modified timestamp of the file. The option is a:long
type. Group: consumer- Returns:
- the name of the header
FileLastModified
.
-