| java.lang.Object org.apache.commons.vfs.FileSystemConfigBuilder org.apache.commons.vfs.provider.sftp.SftpFileSystemConfigBuilder
SftpFileSystemConfigBuilder | public class SftpFileSystemConfigBuilder extends FileSystemConfigBuilder (Code) | | The config builder for various sftp configuration options
author: Mario Ivankovits version: $Revision: 480428 $ $Date: 2006-11-28 22:15:24 -0800 (Tue, 28 Nov 2006) $ |
Method Summary | |
public String | getCompression(FileSystemOptions opts) | protected Class | getConfigClass() | public File[] | getIdentities(FileSystemOptions opts) | public static SftpFileSystemConfigBuilder | getInstance() | public File | getKnownHosts(FileSystemOptions opts) | public String | getProxyHost(FileSystemOptions opts) Get the proxy to use for sftp connection
You have to set the ProxyPort too if you would like to have the proxy relly used. | public int | getProxyPort(FileSystemOptions opts) Get the proxy-port to use for sftp the connection
You have to set the ProxyHost too if you would like to have the proxy relly used. | public ProxyType | getProxyType(FileSystemOptions opts) Get the proxy type to use for sftp connection. | public String | getStrictHostKeyChecking(FileSystemOptions opts) | public Integer | getTimeout(FileSystemOptions opts) | public Boolean | getUserDirIsRoot(FileSystemOptions opts) | public UserInfo | getUserInfo(FileSystemOptions opts) | public void | setCompression(FileSystemOptions opts, String compression) configure the compression to use.
e.g. | public void | setIdentities(FileSystemOptions opts, File[] identities) | public void | setKnownHosts(FileSystemOptions opts, File sshdir) Set the known_hosts file. | public void | setProxyHost(FileSystemOptions opts, String proxyHost) Set the proxy to use for sftp connection.
You have to set the ProxyPort too if you would like to have the proxy relly used. | public void | setProxyPort(FileSystemOptions opts, int proxyPort) Set the proxy-port to use for sftp connection
You have to set the ProxyHost too if you would like to have the proxy relly used. | public void | setProxyType(FileSystemOptions opts, ProxyType proxyType) Set the proxy type to use for sftp connection. | public void | setStrictHostKeyChecking(FileSystemOptions opts, String hostKeyChecking) configure the host key checking to use.
valid arguments are only yes, no and ask.
See the jsch documentation for details. | public void | setTimeout(FileSystemOptions opts, Integer timeout) | public void | setUserDirIsRoot(FileSystemOptions opts, boolean userDirIsRoot) | public void | setUserInfo(FileSystemOptions opts, UserInfo info) Set the userinfo class to use if e.g. |
PROXY_HTTP | final public static ProxyType PROXY_HTTP(Code) | | |
PROXY_SOCKS5 | final public static ProxyType PROXY_SOCKS5(Code) | | |
getProxyType | public ProxyType getProxyType(FileSystemOptions opts)(Code) | | Get the proxy type to use for sftp connection.
|
setIdentities | public void setIdentities(FileSystemOptions opts, File[] identities) throws FileSystemException(Code) | | Set the identity files (your private key files).
Need to use a java.io.File as JSch cant deal with vfs FileObjects ;-)
Parameters: opts - Parameters: identities - |
setKnownHosts | public void setKnownHosts(FileSystemOptions opts, File sshdir) throws FileSystemException(Code) | | Set the known_hosts file. e.g. /home/user/.ssh/known_hosts2
Need to use a java.io.File as JSch cant deal with vfs FileObjects ;-)
Parameters: opts - Parameters: sshdir - |
setProxyType | public void setProxyType(FileSystemOptions opts, ProxyType proxyType)(Code) | | Set the proxy type to use for sftp connection.
|
setStrictHostKeyChecking | public void setStrictHostKeyChecking(FileSystemOptions opts, String hostKeyChecking) throws FileSystemException(Code) | | configure the host key checking to use.
valid arguments are only yes, no and ask.
See the jsch documentation for details.
Parameters: opts - Parameters: hostKeyChecking - throws: FileSystemException - |
setTimeout | public void setTimeout(FileSystemOptions opts, Integer timeout)(Code) | | set the timeout value on jsch session
Parameters: opts - Parameters: timeout - |
setUserDirIsRoot | public void setUserDirIsRoot(FileSystemOptions opts, boolean userDirIsRoot)(Code) | | use user directory as root (do not change to fs root)
Parameters: opts - Parameters: userDirIsRoot - |
setUserInfo | public void setUserInfo(FileSystemOptions opts, UserInfo info)(Code) | | Set the userinfo class to use if e.g. a password or a not known host
will be contacted
Parameters: opts - Parameters: info - |
|
|