Uses of Class
org.apache.camel.component.file.GenericFile
Packages that use GenericFile
Package
Description
The File Component for working with file systems.
Strategies for the File Component.
-
Uses of GenericFile in org.apache.camel.component.file
Fields in org.apache.camel.component.file with type parameters of type GenericFileMethods in org.apache.camel.component.file that return GenericFileModifier and TypeMethodDescriptionstatic GenericFile<File> FileConsumer.asGenericFile(String endpointPath, File file, String charset, boolean probeContentType) Creates a new GenericFilebased on the given file. GenericFileMessage.getGenericFile()FileOperations.newGenericFile()GenericFileOperations.newGenericFile()Creates a new instance ofGenericFileMethods in org.apache.camel.component.file that return types with arguments of type GenericFileMethods in org.apache.camel.component.file with parameters of type GenericFileModifier and TypeMethodDescriptionvoidGenericFileProcessStrategy.abort(GenericFileOperations<T> operations, GenericFileEndpoint<T> endpoint, org.apache.camel.Exchange exchange, GenericFile<T> file) Called when a begin is aborted, for example to release any resources which may have been acquired during theGenericFileProcessStrategy.begin(GenericFileOperations, GenericFileEndpoint, org.apache.camel.Exchange, GenericFile)operation.booleanAntPathMatcherGenericFileFilter.accept(GenericFile<T> file) Deprecated.booleanGenericFileFilter.accept(GenericFile<T> file) Tests whether the specified generic file should be includeddefault booleanOptimizedFileFilter.accept(GenericFile file) booleanGenericFileExclusiveReadLockStrategy.acquireExclusiveReadLock(GenericFileOperations<T> operations, GenericFile<T> file, org.apache.camel.Exchange exchange) Acquires exclusive read lock to the file.static StringGenericFileHelper.asExclusiveReadLockKey(GenericFile file, String key) booleanGenericFileProcessStrategy.begin(GenericFileOperations<T> operations, GenericFileEndpoint<T> endpoint, org.apache.camel.Exchange exchange, GenericFile<T> file) Called when work is about to begin on this file.voidGenericFileProcessStrategy.commit(GenericFileOperations<T> operations, GenericFileEndpoint<T> endpoint, org.apache.camel.Exchange exchange, GenericFile<T> file) Releases any file locks and possibly deletes or moves the file after successful processingvoidGenericFileEndpoint.configureMessage(GenericFile<T> file, org.apache.camel.Message message) Configures the given message with the file which sets the body to the file object.voidGenericFile.copyFrom(GenericFile<T> source, GenericFile<T> result) Creates a copy based on the sourcevoidGenericFile.copyFromPopulateAdditional(GenericFile<T> source, GenericFile<T> result) Copies additional information from the source to the result.protected org.apache.camel.ExchangeFileConsumer.createExchange(GenericFile<File> file) org.apache.camel.ExchangeFileEndpoint.createExchange(GenericFile<File> file) protected abstract org.apache.camel.ExchangeGenericFileConsumer.createExchange(GenericFile<T> file) Creates the exchange from the polled fileabstract org.apache.camel.ExchangeGenericFileEndpoint.createExchange(GenericFile<T> file) static InputStreamGenericFileConverter.genericFileToInputStream(GenericFile<?> file, org.apache.camel.Exchange exchange) static ReaderGenericFileConverter.genericFileToReader(GenericFile<?> file, org.apache.camel.Exchange exchange) static SerializableGenericFileConverter.genericFileToSerializable(GenericFile<?> file, org.apache.camel.Exchange exchange) static StringGenericFileConverter.genericFileToString(GenericFile<?> file, org.apache.camel.Exchange exchange) FileBinding.getBody(GenericFile<File> file) GenericFileBinding.getBody(GenericFile<T> file) Gets the body of the fileGenericFileDefaultBinding.getBody(GenericFile<T> file) voidFileBinding.loadContent(org.apache.camel.Exchange exchange, GenericFile<?> file) voidGenericFileBinding.loadContent(org.apache.camel.Exchange exchange, GenericFile<?> file) Ensures the content is loaded from the file into memoryvoidGenericFileDefaultBinding.loadContent(org.apache.camel.Exchange exchange, GenericFile<?> file) protected voidGenericFileOnCompletion.processStrategyCommit(GenericFileProcessStrategy<T> processStrategy, org.apache.camel.Exchange exchange, GenericFile<T> file) Strategy when the file was processed and a commit should be executed.protected voidGenericFileOnCompletion.processStrategyRollback(GenericFileProcessStrategy<T> processStrategy, org.apache.camel.Exchange exchange, GenericFile<T> file) Strategy when the file was not processed and a rollback should be executed.voidGenericFileExclusiveReadLockStrategy.releaseExclusiveReadLockOnAbort(GenericFileOperations<T> operations, GenericFile<T> file, org.apache.camel.Exchange exchange) Releases the exclusive read lock granted by the acquireExclusiveReadLock method due an abort operation (acquireExclusiveReadLock returned false).voidGenericFileExclusiveReadLockStrategy.releaseExclusiveReadLockOnCommit(GenericFileOperations<T> operations, GenericFile<T> file, org.apache.camel.Exchange exchange) Releases the exclusive read lock granted by the acquireExclusiveReadLock method due a commit operation (Exchange processing succeeded)voidGenericFileExclusiveReadLockStrategy.releaseExclusiveReadLockOnRollback(GenericFileOperations<T> operations, GenericFile<T> file, org.apache.camel.Exchange exchange) Releases the exclusive read lock granted by the acquireExclusiveReadLock method due a rollback operation (Exchange processing failed)voidGenericFileProcessStrategy.rollback(GenericFileOperations<T> operations, GenericFileEndpoint<T> endpoint, org.apache.camel.Exchange exchange, GenericFile<T> file) Releases any file locks and possibly deletes or moves the file after unsuccessful processingvoidFileBinding.setBody(GenericFile<File> file, Object body) voidGenericFileBinding.setBody(GenericFile<T> file, Object body) Sets the body from the given filevoidGenericFileDefaultBinding.setBody(GenericFile<T> file, Object body) voidGenericFileMessage.setGenericFile(GenericFile<T> file) protected voidFileConsumer.updateFileHeaders(GenericFile<File> file, org.apache.camel.Message message) protected abstract voidGenericFileConsumer.updateFileHeaders(GenericFile<T> file, org.apache.camel.Message message) Updates the information onMessageafter we have acquired read-lock and can begin process the file.Method parameters in org.apache.camel.component.file with type arguments of type GenericFileModifier and TypeMethodDescriptionstatic <T> org.apache.camel.ExchangeGenericFileHelper.createDummy(GenericFileEndpoint<T> endpoint, org.apache.camel.Exchange dynamic, Supplier<GenericFile<T>> file) protected booleanprotected abstract booleanStrategy to perform file matching based on endpoint configuration in terms of done file name.protected booleanGenericFileConsumer.isMatched(org.apache.camel.Exchange dynamic, Supplier<GenericFile<T>> file, String name, String absoluteFilePath, Supplier<String> relativeFilePath, boolean isDirectory, T[] files) Strategy to perform file matching based on endpoint configuration.protected booleanFileConsumer.isMatchedHiddenFile(Supplier<GenericFile<File>> file, String name, boolean isDirectory) protected booleanGenericFileConsumer.isMatchedHiddenFile(Supplier<GenericFile<T>> file, String name, boolean isDirectory) Strategy to perform hidden file matching based on endpoint configuration.protected booleanGenericFileConsumer.isValidFile(org.apache.camel.Exchange dynamic, Supplier<GenericFile<T>> file, String name, String absoluteFilePath, Supplier<String> relativeFilePath, boolean isDirectory, T[] files) Strategy for validating if the given remote file should be included or notprotected booleanFileConsumer.pollDirectory(org.apache.camel.Exchange dynamic, String fileName, List<GenericFile<File>> fileList, int depth) protected abstract booleanGenericFileConsumer.pollDirectory(org.apache.camel.Exchange dynamic, String fileName, List<GenericFile<T>> fileList, int depth) Polls the given directory for files to processprotected voidGenericFileConsumer.removeExcessiveInProgressFiles(List<GenericFile<T>> files) Drain any in progress files as we are done with the filesvoidGenericFileEndpoint.setSorter(Comparator<GenericFile<T>> sorter) Pluggable sorter as a java.util.Comparatorinvalid input: '<'org.apache.camel.component.file.GenericFile> class.Constructors in org.apache.camel.component.file with parameters of type GenericFileModifierConstructorDescriptionGenericFileMessage(org.apache.camel.CamelContext camelContext, GenericFile<T> file) GenericFileMessage(org.apache.camel.Exchange exchange, GenericFile<T> file) GenericFileOnCompletion(GenericFileEndpoint<T> endpoint, GenericFileOperations<T> operations, GenericFileProcessStrategy processStrategy, GenericFile<T> file, String absoluteFileName) -
Uses of GenericFile in org.apache.camel.component.file.consumer
Methods in org.apache.camel.component.file.consumer with parameters of type GenericFileModifier and TypeMethodDescriptiondefault voidFileOffsetResumeAdapter.setResumePayload(GenericFile<File> genericFile) Sets the resume payload used for the adapter -
Uses of GenericFile in org.apache.camel.component.file.consumer.adapters
Methods in org.apache.camel.component.file.consumer.adapters with parameters of type GenericFileModifier and TypeMethodDescriptionvoidFileResumeAdapterDelegate.setResumePayload(GenericFile<File> genericFile) -
Uses of GenericFile in org.apache.camel.component.file.strategy
Methods in org.apache.camel.component.file.strategy that return GenericFileModifier and TypeMethodDescriptionGenericFileExpressionRenamer.renameFile(GenericFileOperations<T> operations, org.apache.camel.Exchange exchange, GenericFile<T> file) protected GenericFile<T> GenericFileProcessStrategySupport.renameFile(GenericFileOperations<T> operations, GenericFile<T> from, GenericFile<T> to) GenericFileRenamer.renameFile(GenericFileOperations<T> operations, org.apache.camel.Exchange exchange, GenericFile<T> file) Renames the given fileMethods in org.apache.camel.component.file.strategy with parameters of type GenericFileModifier and TypeMethodDescriptionvoidGenericFileProcessStrategySupport.abort(GenericFileOperations<T> operations, GenericFileEndpoint<T> endpoint, org.apache.camel.Exchange exchange, GenericFile<T> file) booleanFileChangedExclusiveReadLockStrategy.acquireExclusiveReadLock(GenericFileOperations<File> operations, GenericFile<File> file, org.apache.camel.Exchange exchange) booleanFileIdempotentChangedRepositoryReadLockStrategy.acquireExclusiveReadLock(GenericFileOperations<File> operations, GenericFile<File> file, org.apache.camel.Exchange exchange) booleanFileIdempotentRenameRepositoryReadLockStrategy.acquireExclusiveReadLock(GenericFileOperations<File> operations, GenericFile<File> file, org.apache.camel.Exchange exchange) booleanFileIdempotentRepositoryReadLockStrategy.acquireExclusiveReadLock(GenericFileOperations<File> operations, GenericFile<File> file, org.apache.camel.Exchange exchange) booleanFileLockExclusiveReadLockStrategy.acquireExclusiveReadLock(GenericFileOperations<File> operations, GenericFile<File> file, org.apache.camel.Exchange exchange) booleanFileRenameExclusiveReadLockStrategy.acquireExclusiveReadLock(GenericFileOperations<File> operations, GenericFile<File> file, org.apache.camel.Exchange exchange) booleanGenericFileRenameExclusiveReadLockStrategy.acquireExclusiveReadLock(GenericFileOperations<T> operations, GenericFile<T> file, org.apache.camel.Exchange exchange) booleanMarkerFileExclusiveReadLockStrategy.acquireExclusiveReadLock(GenericFileOperations<File> operations, GenericFile<File> file, org.apache.camel.Exchange exchange) protected StringFileIdempotentChangedRepositoryReadLockStrategy.asKey(org.apache.camel.Exchange exchange, GenericFile<File> file) protected StringFileIdempotentRenameRepositoryReadLockStrategy.asKey(org.apache.camel.Exchange exchange, GenericFile<File> file) protected StringFileIdempotentRepositoryReadLockStrategy.asKey(org.apache.camel.Exchange exchange, GenericFile<File> file) booleanGenericFileDeleteProcessStrategy.begin(GenericFileOperations<T> operations, GenericFileEndpoint<T> endpoint, org.apache.camel.Exchange exchange, GenericFile<T> file) booleanGenericFileProcessStrategySupport.begin(GenericFileOperations<T> operations, GenericFileEndpoint<T> endpoint, org.apache.camel.Exchange exchange, GenericFile<T> file) booleanGenericFileRenameProcessStrategy.begin(GenericFileOperations<T> operations, GenericFileEndpoint<T> endpoint, org.apache.camel.Exchange exchange, GenericFile<T> file) voidGenericFileDeleteProcessStrategy.commit(GenericFileOperations<T> operations, GenericFileEndpoint<T> endpoint, org.apache.camel.Exchange exchange, GenericFile<T> file) voidGenericFileProcessStrategySupport.commit(GenericFileOperations<T> operations, GenericFileEndpoint<T> endpoint, org.apache.camel.Exchange exchange, GenericFile<T> file) voidGenericFileRenameProcessStrategy.commit(GenericFileOperations<T> operations, GenericFileEndpoint<T> endpoint, org.apache.camel.Exchange exchange, GenericFile<T> file) protected voidFileLockExclusiveReadLockStrategy.doReleaseExclusiveReadLock(GenericFile<File> file, org.apache.camel.Exchange exchange) protected voidMarkerFileExclusiveReadLockStrategy.doReleaseExclusiveReadLock(GenericFile<File> file, org.apache.camel.Exchange exchange) Perform the releases of the exclusive read lock granted by the acquireExclusiveReadLock method due a commit operation.voidFileIdempotentChangedRepositoryReadLockStrategy.releaseExclusiveReadLockOnAbort(GenericFileOperations<File> operations, GenericFile<File> file, org.apache.camel.Exchange exchange) voidFileIdempotentRenameRepositoryReadLockStrategy.releaseExclusiveReadLockOnAbort(GenericFileOperations<File> operations, GenericFile<File> file, org.apache.camel.Exchange exchange) voidFileIdempotentRepositoryReadLockStrategy.releaseExclusiveReadLockOnAbort(GenericFileOperations<File> operations, GenericFile<File> file, org.apache.camel.Exchange exchange) voidFileRenameExclusiveReadLockStrategy.releaseExclusiveReadLockOnAbort(GenericFileOperations<File> operations, GenericFile<File> file, org.apache.camel.Exchange exchange) voidGenericFileRenameExclusiveReadLockStrategy.releaseExclusiveReadLockOnAbort(GenericFileOperations<T> operations, GenericFile<T> file, org.apache.camel.Exchange exchange) voidMarkerFileExclusiveReadLockStrategy.releaseExclusiveReadLockOnAbort(GenericFileOperations<File> operations, GenericFile<File> file, org.apache.camel.Exchange exchange) voidFileIdempotentChangedRepositoryReadLockStrategy.releaseExclusiveReadLockOnCommit(GenericFileOperations<File> operations, GenericFile<File> file, org.apache.camel.Exchange exchange) voidFileIdempotentRenameRepositoryReadLockStrategy.releaseExclusiveReadLockOnCommit(GenericFileOperations<File> operations, GenericFile<File> file, org.apache.camel.Exchange exchange) voidFileIdempotentRepositoryReadLockStrategy.releaseExclusiveReadLockOnCommit(GenericFileOperations<File> operations, GenericFile<File> file, org.apache.camel.Exchange exchange) voidFileRenameExclusiveReadLockStrategy.releaseExclusiveReadLockOnCommit(GenericFileOperations<File> operations, GenericFile<File> file, org.apache.camel.Exchange exchange) voidGenericFileRenameExclusiveReadLockStrategy.releaseExclusiveReadLockOnCommit(GenericFileOperations<T> operations, GenericFile<T> file, org.apache.camel.Exchange exchange) voidMarkerFileExclusiveReadLockStrategy.releaseExclusiveReadLockOnCommit(GenericFileOperations<File> operations, GenericFile<File> file, org.apache.camel.Exchange exchange) voidFileIdempotentChangedRepositoryReadLockStrategy.releaseExclusiveReadLockOnRollback(GenericFileOperations<File> operations, GenericFile<File> file, org.apache.camel.Exchange exchange) voidFileIdempotentRenameRepositoryReadLockStrategy.releaseExclusiveReadLockOnRollback(GenericFileOperations<File> operations, GenericFile<File> file, org.apache.camel.Exchange exchange) voidFileIdempotentRepositoryReadLockStrategy.releaseExclusiveReadLockOnRollback(GenericFileOperations<File> operations, GenericFile<File> file, org.apache.camel.Exchange exchange) voidFileRenameExclusiveReadLockStrategy.releaseExclusiveReadLockOnRollback(GenericFileOperations<File> operations, GenericFile<File> file, org.apache.camel.Exchange exchange) voidGenericFileRenameExclusiveReadLockStrategy.releaseExclusiveReadLockOnRollback(GenericFileOperations<T> operations, GenericFile<T> file, org.apache.camel.Exchange exchange) voidMarkerFileExclusiveReadLockStrategy.releaseExclusiveReadLockOnRollback(GenericFileOperations<File> operations, GenericFile<File> file, org.apache.camel.Exchange exchange) GenericFileExpressionRenamer.renameFile(GenericFileOperations<T> operations, org.apache.camel.Exchange exchange, GenericFile<T> file) protected GenericFile<T> GenericFileProcessStrategySupport.renameFile(GenericFileOperations<T> operations, GenericFile<T> from, GenericFile<T> to) GenericFileRenamer.renameFile(GenericFileOperations<T> operations, org.apache.camel.Exchange exchange, GenericFile<T> file) Renames the given filevoidGenericFileDeleteProcessStrategy.rollback(GenericFileOperations<T> operations, GenericFileEndpoint<T> endpoint, org.apache.camel.Exchange exchange, GenericFile<T> file) voidGenericFileProcessStrategySupport.rollback(GenericFileOperations<T> operations, GenericFileEndpoint<T> endpoint, org.apache.camel.Exchange exchange, GenericFile<T> file) voidGenericFileRenameProcessStrategy.rollback(GenericFileOperations<T> operations, GenericFileEndpoint<T> endpoint, org.apache.camel.Exchange exchange, GenericFile<T> file)