Repository: camel Updated Branches: refs/heads/master 350113734 -> 63df40219
Component docs Project: http://git-wip-us.apache.org/repos/asf/camel/repo Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/63df4021 Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/63df4021 Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/63df4021 Branch: refs/heads/master Commit: 63df40219884d134f83ea9c65901ce96726c4430 Parents: 3501137 Author: Claus Ibsen <[email protected]> Authored: Sun Jun 14 16:11:04 2015 +0200 Committer: Claus Ibsen <[email protected]> Committed: Sun Jun 14 16:11:04 2015 +0200 ---------------------------------------------------------------------- .../camel/component/file/remote/SftpEndpoint.java | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/camel/blob/63df4021/components/camel-ftp/src/main/java/org/apache/camel/component/file/remote/SftpEndpoint.java ---------------------------------------------------------------------- diff --git a/components/camel-ftp/src/main/java/org/apache/camel/component/file/remote/SftpEndpoint.java b/components/camel-ftp/src/main/java/org/apache/camel/component/file/remote/SftpEndpoint.java index b8f8db3..5547376 100644 --- a/components/camel-ftp/src/main/java/org/apache/camel/component/file/remote/SftpEndpoint.java +++ b/components/camel-ftp/src/main/java/org/apache/camel/component/file/remote/SftpEndpoint.java @@ -34,7 +34,7 @@ public class SftpEndpoint extends RemoteFileEndpoint<ChannelSftp.LsEntry> { @UriParam protected SftpConfiguration configuration; @UriParam - Proxy proxy; + protected Proxy proxy; public SftpEndpoint() { } @@ -74,12 +74,20 @@ public class SftpEndpoint extends RemoteFileEndpoint<ChannelSftp.LsEntry> { return operations; } - @Override - public String getScheme() { - return "sftp"; + public Proxy getProxy() { + return proxy; } + /** + * To use a custom configured com.jcraft.jsch.Proxy. + * This proxy is used to consume/send messages from the target SFTP host. + */ public void setProxy(Proxy proxy) { this.proxy = proxy; } + + @Override + public String getScheme() { + return "sftp"; + } }
