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

A Producer implementation for File

Version:
$Revision: 37863 $

Constructor Summary
FileProducer(FileEndpoint endpoint)
           
 
Method Summary
protected  File createFileName(Message message)
           
 FileEndpoint getEndpoint()
           
 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, 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()
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 © 2008 IONA Open Source Community. All Rights Reserved.