org.apache.camel.component.file.remote
Class RemoteFileProducer<T extends RemoteFileExchange>

java.lang.Object
  extended by org.apache.camel.impl.ServiceSupport
      extended by org.apache.camel.impl.DefaultProducer<T>
          extended by org.apache.camel.component.file.remote.RemoteFileProducer<T>
All Implemented Interfaces:
Processor, Producer<T>, Service
Direct Known Subclasses:
FtpProducer, SftpProducer

public abstract class RemoteFileProducer<T extends RemoteFileExchange>
extends DefaultProducer<T>


Field Summary
protected  RemoteFileEndpoint<T> endpoint
           
protected  org.apache.commons.logging.Log log
           
 
Constructor Summary
protected RemoteFileProducer(RemoteFileEndpoint<T> endpoint)
           
 
Method Summary
protected abstract  void connectIfNecessary()
           
protected  String createFileName(Message message, RemoteFileConfiguration fileConfig)
           
protected abstract  void disconnect()
           
protected  void doStart()
           
protected  void doStop()
           
protected  String remoteServer()
           
 
Methods inherited from class org.apache.camel.impl.DefaultProducer
createExchange, createExchange, createExchange, getEndpoint, 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.Processor
process
 
Methods inherited from interface org.apache.camel.Service
start, stop
 

Field Detail

log

protected final transient org.apache.commons.logging.Log log

endpoint

protected RemoteFileEndpoint<T extends RemoteFileExchange> endpoint
Constructor Detail

RemoteFileProducer

protected RemoteFileProducer(RemoteFileEndpoint<T> endpoint)
Method Detail

createFileName

protected String createFileName(Message message,
                                RemoteFileConfiguration fileConfig)

remoteServer

protected String remoteServer()

doStart

protected void doStart()
                throws Exception
Overrides:
doStart in class DefaultProducer<T extends RemoteFileExchange>
Throws:
Exception

doStop

protected void doStop()
               throws Exception
Overrides:
doStop in class DefaultProducer<T extends RemoteFileExchange>
Throws:
Exception

connectIfNecessary

protected abstract void connectIfNecessary()
                                    throws Exception
Throws:
Exception

disconnect

protected abstract void disconnect()
                            throws Exception
Throws:
Exception


Apache CAMEL