org.apache.camel.component.file
Class FileEndpoint
java.lang.Object
org.apache.camel.impl.DefaultEndpoint
org.apache.camel.impl.ScheduledPollEndpoint
org.apache.camel.component.file.GenericFileEndpoint<File>
org.apache.camel.component.file.FileEndpoint
- All Implemented Interfaces:
- CamelContextAware, Endpoint, IsSingleton
public class FileEndpoint
- extends GenericFileEndpoint<File>
File endpoint.
Fields inherited from class org.apache.camel.component.file.GenericFileEndpoint |
append, autoCreate, bufferSize, configuration, DEFAULT_IDEMPOTENT_CACHE_SIZE, DEFAULT_STRATEGYFACTORY_CLASS, delete, exclude, exclusiveReadLockStrategy, fileName, filter, flattern, idempotent, idempotentRepository, include, localWorkDirectory, log, move, noop, preMove, processStrategy, readLock, readLockTimeout, recursive, sortBy, sorter, tempPrefix |
Methods inherited from class org.apache.camel.component.file.GenericFileEndpoint |
configureMessage, configureMoveOrPreMoveExpression, createGenericFileStrategy, getBufferSize, getConfiguration, getExclude, getExclusiveReadLockStrategy, getFileName, getFilter, getGeneratedFileName, getGenericFileProcessStrategy, getIdempotentRepository, getInclude, getLocalWorkDirectory, getMove, getParamsAsMap, getPreMove, getProcessStrategy, getReadLock, getReadLockTimeout, getSortBy, getSorter, getTempPrefix, isAppend, isAutoCreate, isDelete, isFlattern, isIdempotent, isNoop, isRecursive, isSingleton, setAppend, setAutoCreate, setBufferSize, setConfiguration, setDelete, setExclude, setExclusiveReadLockStrategy, setFileName, setFileName, setFilter, setFlattern, setGenericFileProcessStrategy, setIdempotent, setIdempotentRepository, setInclude, setLocalWorkDirectory, setMove, setMove, setNoop, setOperations, setPreMove, setPreMove, setProcessStrategy, setReadLock, setReadLockTimeout, setRecursive, setSortBy, setSortBy, setSortBy, setSorter, setTempPrefix |
Methods inherited from class org.apache.camel.impl.DefaultEndpoint |
convertTo, createExchange, createExchange, createExecutorService, createPollingConsumer, equals, getCamelContext, getComponent, getEndpointUri, getExchangePattern, getExchangeType, getExecutorService, hashCode, isLenientProperties, setCamelContext, setEndpointUri, setEndpointUriIfNotSpecified, setExchangePattern, setExecutorService, toString |
FileEndpoint
public FileEndpoint()
FileEndpoint
public FileEndpoint(String endpointUri,
Component component)
createConsumer
public FileConsumer createConsumer(Processor processor)
throws Exception
- Description copied from interface:
Endpoint
- Creates a new Event
Driven Consumer which consumes messages from the endpoint using the
given processor
- Specified by:
createConsumer
in interface Endpoint
- Specified by:
createConsumer
in class GenericFileEndpoint<File>
- Parameters:
processor
- the given processor
- Returns:
- a newly created consumer
- Throws:
Exception
- can be thrown
createProducer
public GenericFileProducer<File> createProducer()
throws Exception
- Description copied from interface:
Endpoint
- Creates a new producer which is used send messages into the endpoint
- Specified by:
createProducer
in interface Endpoint
- Specified by:
createProducer
in class GenericFileEndpoint<File>
- Returns:
- a newly created producer
- Throws:
Exception
- can be thrown
createExchange
public GenericFileExchange<File> createExchange(GenericFile<File> file)
- Specified by:
createExchange
in class GenericFileEndpoint<File>
createExchange
public GenericFileExchange createExchange()
- Description copied from interface:
Endpoint
- Create a new exchange for communicating with this endpoint
- Specified by:
createExchange
in interface Endpoint
- Overrides:
createExchange
in class DefaultEndpoint
getOperations
public FileOperations getOperations()
- Overrides:
getOperations
in class GenericFileEndpoint<File>
setOperations
public void setOperations(FileOperations operations)
getFile
public File getFile()
setFile
public void setFile(File file)
getScheme
public String getScheme()
- Specified by:
getScheme
in class GenericFileEndpoint<File>
createEndpointUri
protected String createEndpointUri()
- Description copied from class:
DefaultEndpoint
- A factory method to lazily create the endpointUri if none is specified
- Overrides:
createEndpointUri
in class DefaultEndpoint
getFileSeparator
public char getFileSeparator()
- Specified by:
getFileSeparator
in class GenericFileEndpoint<File>
isAbsolute
public boolean isAbsolute(String name)
- Specified by:
isAbsolute
in class GenericFileEndpoint<File>
Copyright © 2009 Apache Software Foundation. All Rights Reserved.