@UriEndpoint(scheme="file", consumerClass=FileConsumer.class) public class FileEndpoint extends GenericFileEndpoint<File>
allowNullBody, antFilter, autoCreate, bufferSize, charset, configuration, DEFAULT_IDEMPOTENT_CACHE_SIZE, DEFAULT_STRATEGYFACTORY_CLASS, delete, directoryMustExist, doneFileName, eagerDeleteTargetFile, eagerMaxMessagesPerPoll, exclude, exclusiveReadLockStrategy, fileExist, fileName, filter, flatten, idempotent, idempotentKey, idempotentRepository, include, inProgressRepository, keepLastModified, localWorkDirectory, log, maxDepth, maxMessagesPerPoll, minDepth, move, moveExisting, moveFailed, noop, preMove, processStrategy, readLock, readLockCheckInterval, readLockLoggingLevel, readLockMinLength, readLockTimeout, recursive, sortBy, sorter, startingDirectoryMustExist, tempFileName, tempPrefix
shutdown, shuttingdown, started, starting, stopped, stopping, suspended, suspending
Constructor and Description |
---|
FileEndpoint() |
FileEndpoint(String endpointUri,
Component component) |
Modifier and Type | Method and Description |
---|---|
FileConsumer |
createConsumer(Processor processor)
Creates a new Event
Driven Consumer which consumes messages from the endpoint using the
given processor
|
protected String |
createEndpointUri()
A factory method to lazily create the endpointUri if none is specified
|
Exchange |
createExchange(GenericFile<File> file) |
GenericFileProducer<File> |
createProducer()
Creates a new producer which is used send messages into the endpoint
|
File |
getFile() |
char |
getFileSeparator() |
String |
getScheme() |
boolean |
isAbsolute(String name) |
boolean |
isCopyAndDeleteOnRenameFail() |
boolean |
isForceWrites() |
protected FileConsumer |
newFileConsumer(Processor processor,
GenericFileOperations<File> operations)
Strategy to create a new
FileConsumer |
void |
setCopyAndDeleteOnRenameFail(boolean copyAndDeleteOnRenameFail) |
void |
setFile(File file) |
void |
setForceWrites(boolean forceWrites) |
configureExchange, configureMessage, configureMoveOrPreMoveExpression, createDoneFileName, createGenericFileStrategy, doStart, doStop, getAntFilter, getBufferSize, getCharset, getConfiguration, getDoneFileName, getExchanges, getExclude, getExclusiveReadLockStrategy, getFileExist, getFileName, getFilter, getGeneratedFileName, getGenericFileProcessStrategy, getIdempotentKey, getIdempotentRepository, getInclude, getInProgressRepository, getLocalWorkDirectory, getMaxDepth, getMaxMessagesPerPoll, getMinDepth, getMove, getMoveExisting, getMoveFailed, getParamsAsMap, getPreMove, getProcessStrategy, getReadLock, getReadLockCheckInterval, getReadLockLoggingLevel, getReadLockMinLength, getReadLockTimeout, getSortBy, getSorter, getTempFileName, getTempPrefix, isAllowNullBody, isAutoCreate, isDelete, isDirectoryMustExist, isDoneFile, isEagerDeleteTargetFile, isEagerMaxMessagesPerPoll, isFlatten, isIdempotent, isIdempotentSet, isKeepLastModified, isNoop, isRecursive, isSingleton, isStartingDirectoryMustExist, setAllowNullBody, setAntExclude, setAntFilterCaseSensitive, setAntInclude, setAutoCreate, setBufferSize, setCharset, setConfiguration, setDelete, setDirectoryMustExist, setDoneFileName, setEagerDeleteTargetFile, setEagerMaxMessagesPerPoll, setExclude, setExclusiveReadLockStrategy, setFileExist, setFileName, setFileName, setFilter, setFlatten, setIdempotent, setIdempotentKey, setIdempotentKey, setIdempotentRepository, setInclude, setInProgressRepository, setKeepLastModified, setLocalWorkDirectory, setMaxDepth, setMaxMessagesPerPoll, setMinDepth, setMove, setMove, setMoveExisting, setMoveExisting, setMoveFailed, setMoveFailed, setNoop, setPreMove, setPreMove, setProcessStrategy, setReadLock, setReadLockCheckInterval, setReadLockLoggingLevel, setReadLockMinLength, setReadLockTimeout, setRecursive, setSortBy, setSortBy, setSortBy, setSorter, setStartingDirectoryMustExist, setTempFileName, setTempFileName, setTempPrefix
configurePollingConsumer, configureProperties, configureScheduledPollConsumerProperties
configureConsumer, createEndpointConfiguration, createExchange, createExchange, createExchange, createPollingConsumer, equals, getCamelContext, getComponent, getConsumerProperties, getEndpointConfiguration, getEndpointKey, getEndpointUri, getExchangePattern, getId, getPollingConsumerQueueSize, hashCode, isLenientProperties, isPollingConsumerBlockWhenFull, isSynchronous, setCamelContext, setConsumerProperties, setEndpointConfiguration, setEndpointUri, setEndpointUriIfNotSpecified, setExchangePattern, setPollingConsumerBlockWhenFull, setPollingConsumerQueueSize, setProperties, setSynchronous, toString
doResume, doShutdown, doSuspend, getStatus, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, resume, shutdown, start, stop, suspend
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
configureProperties, createExchange, createExchange, createExchange, createPollingConsumer, getCamelContext, getEndpointConfiguration, getEndpointKey, getEndpointUri, isLenientProperties, setCamelContext
public FileEndpoint()
public FileEndpoint(String endpointUri, Component component)
public FileConsumer createConsumer(Processor processor) throws Exception
Endpoint
createConsumer
in interface Endpoint
createConsumer
in class GenericFileEndpoint<File>
processor
- the given processorException
- can be thrownpublic GenericFileProducer<File> createProducer() throws Exception
Endpoint
createProducer
in interface Endpoint
createProducer
in class GenericFileEndpoint<File>
Exception
- can be thrownpublic Exchange createExchange(GenericFile<File> file)
createExchange
in class GenericFileEndpoint<File>
protected FileConsumer newFileConsumer(Processor processor, GenericFileOperations<File> operations)
FileConsumer
processor
- the given processoroperations
- file operationspublic String getScheme()
getScheme
in class GenericFileEndpoint<File>
protected String createEndpointUri()
DefaultEndpoint
createEndpointUri
in class DefaultEndpoint
public char getFileSeparator()
getFileSeparator
in class GenericFileEndpoint<File>
public boolean isAbsolute(String name)
isAbsolute
in class GenericFileEndpoint<File>
public boolean isCopyAndDeleteOnRenameFail()
public void setCopyAndDeleteOnRenameFail(boolean copyAndDeleteOnRenameFail)
public boolean isForceWrites()
public void setForceWrites(boolean forceWrites)
Apache Camel