org.apache.camel.component.file.remote
Class SftpProducer
java.lang.Object
org.apache.camel.impl.ServiceSupport
org.apache.camel.impl.DefaultProducer<T>
org.apache.camel.component.file.remote.RemoteFileProducer<RemoteFileExchange>
org.apache.camel.component.file.remote.SftpProducer
- All Implemented Interfaces:
- org.apache.camel.Processor, org.apache.camel.Producer<RemoteFileExchange>, org.apache.camel.Service
public class SftpProducer
- extends RemoteFileProducer<RemoteFileExchange>
Methods inherited from class org.apache.camel.impl.DefaultProducer |
createExchange, createExchange, getEndpoint |
Methods inherited from class org.apache.camel.impl.ServiceSupport |
addChildService, getThreadName, isStarted, isStopped, isStopping, nextThreadCounter, removeChildService, start, stop |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.apache.camel.Service |
start, stop |
SftpProducer
public SftpProducer(SftpEndpoint endpoint,
com.jcraft.jsch.ChannelSftp channelSftp)
process
public void process(org.apache.camel.Exchange exchange)
throws Exception
- Throws:
Exception
process
public void process(RemoteFileExchange exchange)
throws Exception
- Throws:
Exception
doStart
protected void doStart()
throws Exception
- Overrides:
doStart
in class org.apache.camel.impl.DefaultProducer<RemoteFileExchange>
- Throws:
Exception
doStop
protected void doStop()
throws Exception
- Overrides:
doStop
in class org.apache.camel.impl.DefaultProducer<RemoteFileExchange>
- Throws:
Exception
buildDirectory
protected static boolean buildDirectory(com.jcraft.jsch.ChannelSftp sftpClient,
String dirName)
throws IOException
- Throws:
IOException
Copyright © 2007 Apache Software Foundation. All Rights Reserved.