Uses of Class
org.apache.camel.component.file.GenericFile
-
Packages that use GenericFile Package Description org.apache.camel.component.file The File Component for working with file systems.org.apache.camel.component.file.strategy 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 GenericFile Modifier and Type Field Description protected Comparator<GenericFile<T>>GenericFileEndpoint. sorterMethods in org.apache.camel.component.file that return GenericFile Modifier and Type Method Description static GenericFile<File>FileConsumer. asGenericFile(String endpointPath, File file, String charset, boolean probeContentType)Creates a new GenericFilebased on the given file. GenericFile<T>GenericFileMessage. getGenericFile()GenericFile<File>FileOperations. newGenericFile()GenericFile<T>GenericFileOperations. newGenericFile()Creates a new instance ofGenericFileMethods in org.apache.camel.component.file that return types with arguments of type GenericFile Modifier and Type Method Description Comparator<GenericFile<T>>GenericFileEndpoint. getSorter()Methods in org.apache.camel.component.file with parameters of type GenericFile Modifier and Type Method Description voidGenericFileProcessStrategy. 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)booleanGenericFileFilter. accept(GenericFile<T> file)Tests whether or not the specified generic file should be includedbooleanGenericFileExclusiveReadLockStrategy. 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 source, GenericFile result)Deprecated.voidGenericFile. 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)ObjectFileBinding. getBody(GenericFile<File> file)ObjectGenericFileBinding. getBody(GenericFile<T> file)Gets the body of the fileObjectGenericFileDefaultBinding. getBody(GenericFile<T> file)protected booleanFileConsumer. isMatched(GenericFile<File> file, String doneFileName, File[] files)protected booleanGenericFileConsumer. isMatched(GenericFile<T> file, boolean isDirectory, T[] files)Strategy to perform file matching based on endpoint configuration.protected abstract booleanGenericFileConsumer. isMatched(GenericFile<T> file, String doneFileName, T[] files)Strategy to perform file matching based on endpoint configuration in terms of done file name.protected booleanGenericFileConsumer. isValidFile(GenericFile<T> file, boolean isDirectory, T[] files)Strategy for validating if the given remote file should be included or notvoidFileBinding. 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 GenericFile Modifier and Type Method Description protected booleanFileConsumer. pollDirectory(String fileName, List<GenericFile<File>> fileList, int depth)protected abstract booleanGenericFileConsumer. pollDirectory(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.Comparatorclass. Constructors in org.apache.camel.component.file with parameters of type GenericFile Constructor Description GenericFileMessage(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.strategy
Methods in org.apache.camel.component.file.strategy that return GenericFile Modifier and Type Method Description GenericFile<T>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)GenericFile<T>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 GenericFile Modifier and Type Method Description voidGenericFileProcessStrategySupport. 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(GenericFile<File> file)protected StringFileIdempotentRenameRepositoryReadLockStrategy. asKey(GenericFile<File> file)protected StringFileIdempotentRepositoryReadLockStrategy. asKey(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(GenericFileOperations<File> operations, GenericFile<File> file, org.apache.camel.Exchange exchange)protected voidMarkerFileExclusiveReadLockStrategy. doReleaseExclusiveReadLock(GenericFileOperations<File> operations, GenericFile<File> file, org.apache.camel.Exchange exchange)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)GenericFile<T>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)GenericFile<T>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)
-