|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.camel.impl.DefaultEndpoint<E>
org.apache.camel.impl.ScheduledPollEndpoint<FileExchange>
org.apache.camel.component.file.FileEndpoint
public class FileEndpoint
A File Endpoint for working with file systems
| Constructor Summary | |
|---|---|
protected |
FileEndpoint(File file,
String endpointUri,
FileComponent component)
|
| Method Summary | |
|---|---|
Consumer<FileExchange> |
createConsumer(Processor file)
Creates a new Event Driven Consumer which consumes messages from the endpoint using the given processor |
FileExchange |
createExchange()
Create a new exchange for communicating with this endpoint |
FileExchange |
createExchange(File file)
|
Producer<FileExchange> |
createProducer()
Creates a new producer which is used send messages into the endpoint |
File |
getFile()
|
boolean |
isAutoCreate()
|
boolean |
isSingleton()
Returns if the endpoint should be a CamelContext singleton. |
void |
setAutoCreate(boolean autoCreate)
|
| Methods inherited from class org.apache.camel.impl.ScheduledPollEndpoint |
|---|
configureConsumer, configureProperties, getConsumerProperties, setConsumerProperties |
| Methods inherited from class org.apache.camel.impl.DefaultEndpoint |
|---|
convertTo, createExchange, createExecutorService, createPollingConsumer, equals, getComponent, getContext, getEndpointUri, getExchangeType, getExecutorService, hashCode, setExecutorService, toExchangeType, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
protected FileEndpoint(File file,
String endpointUri,
FileComponent component)
| Method Detail |
|---|
public Producer<FileExchange> createProducer()
throws Exception
Endpoint
ExceptionEndpoint.createProducer()
public Consumer<FileExchange> createConsumer(Processor file)
throws Exception
Endpoint
file -
ExceptionEndpoint.createConsumer(org.apache.camel.Processor)public FileExchange createExchange(File file)
file -
Endpoint.createExchange()public FileExchange createExchange()
Endpoint
Endpoint.createExchange()public File getFile()
public boolean isSingleton()
Endpoint
public boolean isAutoCreate()
public void setAutoCreate(boolean autoCreate)
autoCreate - the autoCreate to set
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||