public abstract class RemoteFileEndpoint<T>
extends org.apache.camel.component.file.GenericFileEndpoint<T>
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
Constructor and Description |
---|
RemoteFileEndpoint() |
RemoteFileEndpoint(String uri,
RemoteFileComponent<T> component,
RemoteFileConfiguration configuration) |
Modifier and Type | Method and Description |
---|---|
protected void |
afterPropertiesSet()
Validates this endpoint if its configured properly.
|
protected abstract RemoteFileConsumer<T> |
buildConsumer(org.apache.camel.Processor processor)
Remote File Endpoints, impl this method to create a custom consumer specific to their "protocol" etc.
|
protected abstract org.apache.camel.component.file.GenericFileProducer<T> |
buildProducer()
Remote File Endpoints, impl this method to create a custom producer specific to their "protocol" etc.
|
RemoteFileConsumer<T> |
createConsumer(org.apache.camel.Processor processor) |
org.apache.camel.Exchange |
createExchange(org.apache.camel.component.file.GenericFile<T> file) |
org.apache.camel.component.file.GenericFileProducer<T> |
createProducer() |
abstract RemoteFileOperations<T> |
createRemoteFileOperations()
Creates the operations to be used by the consumer or producer.
|
RemoteFileConfiguration |
getConfiguration() |
char |
getFileSeparator() |
int |
getMaximumReconnectAttempts() |
protected Map<String,Object> |
getParamsAsMap() |
long |
getReconnectDelay() |
boolean |
isAbsolute(String name) |
boolean |
isDisconnect() |
boolean |
isDownload() |
boolean |
isFastExistsCheck() |
String |
remoteServerInformation()
Returns human readable server information for logging purpose
|
void |
setDisconnect(boolean disconnect) |
void |
setDownload(boolean download) |
void |
setFastExistsCheck(boolean fastExistsCheck) |
void |
setMaximumReconnectAttempts(int maximumReconnectAttempts) |
void |
setReconnectDelay(long reconnectDelay) |
configureExchange, configureMessage, configureMoveOrPreMoveExpression, createDoneFileName, createGenericFileStrategy, doStart, doStop, getAntFilter, getBufferSize, getCharset, getDoneFileName, getExchanges, getExclude, getExclusiveReadLockStrategy, getFileExist, getFileName, getFilter, getGeneratedFileName, getGenericFileProcessStrategy, getIdempotentKey, getIdempotentRepository, getInclude, getInProgressRepository, getLocalWorkDirectory, getMaxDepth, getMaxMessagesPerPoll, getMinDepth, getMove, getMoveExisting, getMoveFailed, getPreMove, getProcessStrategy, getReadLock, getReadLockCheckInterval, getReadLockLoggingLevel, getReadLockMinLength, getReadLockTimeout, getScheme, 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, createEndpointUri, 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
public RemoteFileEndpoint()
public RemoteFileEndpoint(String uri, RemoteFileComponent<T> component, RemoteFileConfiguration configuration)
public RemoteFileConfiguration getConfiguration()
getConfiguration
in class org.apache.camel.component.file.GenericFileEndpoint<T>
public org.apache.camel.Exchange createExchange(org.apache.camel.component.file.GenericFile<T> file)
createExchange
in class org.apache.camel.component.file.GenericFileEndpoint<T>
public org.apache.camel.component.file.GenericFileProducer<T> createProducer() throws Exception
public RemoteFileConsumer<T> createConsumer(org.apache.camel.Processor processor) throws Exception
protected void afterPropertiesSet() throws Exception
Exception
- is thrown if endpoint is invalid configured for its mandatory optionsprotected Map<String,Object> getParamsAsMap()
getParamsAsMap
in class org.apache.camel.component.file.GenericFileEndpoint<T>
protected abstract RemoteFileConsumer<T> buildConsumer(org.apache.camel.Processor processor)
processor
- the processorprotected abstract org.apache.camel.component.file.GenericFileProducer<T> buildProducer()
public abstract RemoteFileOperations<T> createRemoteFileOperations() throws Exception
Exception
- is thrown if error creating operations.public String remoteServerInformation()
public char getFileSeparator()
getFileSeparator
in class org.apache.camel.component.file.GenericFileEndpoint<T>
public boolean isAbsolute(String name)
isAbsolute
in class org.apache.camel.component.file.GenericFileEndpoint<T>
public int getMaximumReconnectAttempts()
public void setMaximumReconnectAttempts(int maximumReconnectAttempts)
public long getReconnectDelay()
public void setReconnectDelay(long reconnectDelay)
public boolean isDisconnect()
public void setDisconnect(boolean disconnect)
public boolean isFastExistsCheck()
public void setFastExistsCheck(boolean fastExistsCheck)
public boolean isDownload()
public void setDownload(boolean download)
Apache Camel