org.apache.camel.component.file
Class FileEndpoint

java.lang.Object
  extended by org.apache.camel.impl.DefaultEndpoint<E>
      extended by org.apache.camel.impl.PollingEndpoint<FileExchange>
          extended by 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 $

Constructor Summary
protected FileEndpoint(File file, String endpointUri, FileComponent component)
           
 
Method Summary
 org.apache.camel.Consumer<FileExchange> createConsumer(org.apache.camel.Processor<FileExchange> file)
           
 FileExchange createExchange()
           
 FileExchange createExchange(File file)
           
 org.apache.camel.Producer<FileExchange> createProducer()
           
 ScheduledExecutorService getExecutor()
           
 File getFile()
           
 boolean isSingleton()
           
 void setExecutor(ScheduledExecutorService executor)
           
 
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
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FileEndpoint

protected FileEndpoint(File file,
                       String endpointUri,
                       FileComponent component)
Method Detail

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.