org.apache.camel.component.file
Class FileEndpoint
java.lang.Object
org.apache.camel.impl.DefaultEndpoint<E>
org.apache.camel.impl.PollingEndpoint<FileExchange>
org.apache.camel.component.file.FileEndpoint
- All Implemented Interfaces:
- org.apache.camel.Endpoint<FileExchange>
public class FileEndpoint
- extends org.apache.camel.impl.PollingEndpoint<FileExchange>
- Version:
- $Revision: 523016 $
Methods inherited from class org.apache.camel.impl.PollingEndpoint |
configureConsumer, configureProperties, getConsumerProperties, setConsumerProperties |
Methods inherited from class org.apache.camel.impl.DefaultEndpoint |
convertTo, createExchange, equals, getComponent, getContext, getEndpointUri, getExecutorService, hashCode, startService, toString |
FileEndpoint
protected FileEndpoint(File file,
String endpointUri,
FileComponent component)
createProducer
public org.apache.camel.Producer<FileExchange> createProducer()
throws Exception
- Returns:
- a Producer
- Throws:
Exception
- See Also:
Endpoint.createProducer()
createConsumer
public org.apache.camel.Consumer<FileExchange> createConsumer(org.apache.camel.Processor<FileExchange> file)
throws Exception
- Parameters:
file
-
- Returns:
- a Consumer
- Throws:
Exception
- See Also:
Endpoint.createConsumer(org.apache.camel.Processor)
createExchange
public FileExchange createExchange(File file)
- Parameters:
file
-
- Returns:
- a FileExchange
- See Also:
Endpoint.createExchange()
createExchange
public FileExchange createExchange()
- Returns:
- an Exchange
- See Also:
Endpoint.createExchange()
getExecutor
public ScheduledExecutorService getExecutor()
- Returns:
- the executor
setExecutor
public void setExecutor(ScheduledExecutorService executor)
- Parameters:
executor
- the executor to set
getFile
public File getFile()
isSingleton
public boolean isSingleton()
Copyright © 2007 Apache Software Foundation. All Rights Reserved.