org.apache.camel.component.file
Class FileProducer

java.lang.Object
  extended by org.apache.camel.impl.ServiceSupport
      extended by org.apache.camel.impl.DefaultProducer
          extended by org.apache.camel.component.file.FileProducer
All Implemented Interfaces:
Processor, Producer, Service

public class FileProducer
extends DefaultProducer

For producing files.

Version:
$Revision: 1094 $

Constructor Summary
FileProducer(FileEndpoint endpoint)
           
 
Method Summary
protected  File createFileName(Message message)
           
 FileEndpoint getEndpoint()
          Deprecated. will be removed in Camel 2.0.
 void process(Exchange exchange)
          Processes the message exchange
 void process(FileExchange exchange)
           
 
Methods inherited from class org.apache.camel.impl.DefaultProducer
createExchange, createExchange, createExchange, doStart, doStop, toString
 
Methods inherited from class org.apache.camel.impl.ServiceSupport
addChildService, getThreadName, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, nextThreadCounter, removeChildService, start, stop
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.apache.camel.Service
start, stop
 

Constructor Detail

FileProducer

public FileProducer(FileEndpoint endpoint)
Method Detail

getEndpoint

public FileEndpoint getEndpoint()
Deprecated. will be removed in Camel 2.0.

Specified by:
getEndpoint in interface Producer
Overrides:
getEndpoint in class DefaultProducer

process

public void process(Exchange exchange)
             throws Exception
Description copied from interface: Processor
Processes the message exchange

Throws:
Exception - if an internal processing error has occurred.

process

public void process(FileExchange exchange)
             throws Exception
Throws:
Exception

createFileName

protected File createFileName(Message message)


Copyright © 2009 IONA Open Source Community. All Rights Reserved.