|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.commons.vfs.FileSystemConfigBuilder
org.apache.commons.vfs.provider.sftp.SftpFileSystemConfigBuilder
public class SftpFileSystemConfigBuilder
The config builder for various sftp configuration options
Nested Class Summary | |
---|---|
static class |
SftpFileSystemConfigBuilder.ProxyType
|
Field Summary | |
---|---|
static SftpFileSystemConfigBuilder.ProxyType |
PROXY_HTTP
|
static SftpFileSystemConfigBuilder.ProxyType |
PROXY_SOCKS5
|
Method Summary | |
---|---|
java.lang.String |
getCompression(FileSystemOptions opts)
|
protected java.lang.Class |
getConfigClass()
|
java.io.File[] |
getIdentities(FileSystemOptions opts)
|
static SftpFileSystemConfigBuilder |
getInstance()
|
java.io.File |
getKnownHosts(FileSystemOptions opts)
|
java.lang.String |
getPreferredAuthentications(FileSystemOptions opts)
Get authentication order |
java.lang.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. |
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. |
SftpFileSystemConfigBuilder.ProxyType |
getProxyType(FileSystemOptions opts)
Get the proxy type to use for sftp connection. |
java.lang.String |
getStrictHostKeyChecking(FileSystemOptions opts)
|
java.lang.Integer |
getTimeout(FileSystemOptions opts)
|
java.lang.Boolean |
getUserDirIsRoot(FileSystemOptions opts)
|
com.jcraft.jsch.UserInfo |
getUserInfo(FileSystemOptions opts)
|
void |
setCompression(FileSystemOptions opts,
java.lang.String compression)
configure the compression to use. e.g. |
void |
setIdentities(FileSystemOptions opts,
java.io.File[] identities)
Set the identity files (your private key files). Need to use a java.io.File as JSch cant deal with vfs FileObjects ;-) |
void |
setKnownHosts(FileSystemOptions opts,
java.io.File sshdir)
Set the known_hosts file. |
void |
setPreferredAuthentications(FileSystemOptions opts,
java.lang.String preferredAuthentications)
Configure authentication order |
void |
setProxyHost(FileSystemOptions opts,
java.lang.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. |
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. |
void |
setProxyType(FileSystemOptions opts,
SftpFileSystemConfigBuilder.ProxyType proxyType)
Set the proxy type to use for sftp connection. |
void |
setStrictHostKeyChecking(FileSystemOptions opts,
java.lang.String hostKeyChecking)
configure the host key checking to use. valid arguments are only yes, no and ask. See the jsch documentation for details. |
void |
setTimeout(FileSystemOptions opts,
java.lang.Integer timeout)
set the timeout value on jsch session |
void |
setUserDirIsRoot(FileSystemOptions opts,
boolean userDirIsRoot)
use user directory as root (do not change to fs root) |
void |
setUserInfo(FileSystemOptions opts,
com.jcraft.jsch.UserInfo info)
Set the userinfo class to use if e.g. |
Methods inherited from class org.apache.commons.vfs.FileSystemConfigBuilder |
---|
getBoolean, getBoolean, getBoolean, getByte, getByte, getByte, getCharacter, getCharacter, getCharacter, getDouble, getDouble, getDouble, getFloat, getFloat, getFloat, getInteger, getInteger, getInteger, getLong, getLong, getLong, getParam, getRootURI, getShort, getShort, getShort, getString, getString, hasObject, hasParam, setParam, setRootURI |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final SftpFileSystemConfigBuilder.ProxyType PROXY_HTTP
public static final SftpFileSystemConfigBuilder.ProxyType PROXY_SOCKS5
Method Detail |
---|
public static SftpFileSystemConfigBuilder getInstance()
public void setUserInfo(FileSystemOptions opts, com.jcraft.jsch.UserInfo info)
opts
- info
- public com.jcraft.jsch.UserInfo getUserInfo(FileSystemOptions opts)
opts
- setUserInfo(org.apache.commons.vfs.FileSystemOptions, com.jcraft.jsch.UserInfo)
public void setKnownHosts(FileSystemOptions opts, java.io.File sshdir) throws FileSystemException
opts
- sshdir
-
FileSystemException
public java.io.File getKnownHosts(FileSystemOptions opts)
opts
- setKnownHosts(org.apache.commons.vfs.FileSystemOptions, java.io.File)
public void setIdentities(FileSystemOptions opts, java.io.File[] identities) throws FileSystemException
opts
- identities
-
FileSystemException
public void setCompression(FileSystemOptions opts, java.lang.String compression) throws FileSystemException
opts
- compression
-
FileSystemException
public java.lang.String getCompression(FileSystemOptions opts)
opts
- setCompression(org.apache.commons.vfs.FileSystemOptions, java.lang.String)
public java.io.File[] getIdentities(FileSystemOptions opts)
opts
- setIdentities(org.apache.commons.vfs.FileSystemOptions, java.io.File[])
public void setStrictHostKeyChecking(FileSystemOptions opts, java.lang.String hostKeyChecking) throws FileSystemException
opts
- hostKeyChecking
-
FileSystemException
public java.lang.String getStrictHostKeyChecking(FileSystemOptions opts)
opts
-
setStrictHostKeyChecking(FileSystemOptions, String)
public void setUserDirIsRoot(FileSystemOptions opts, boolean userDirIsRoot)
opts
- userDirIsRoot
- public java.lang.Boolean getUserDirIsRoot(FileSystemOptions opts)
opts
- setUserDirIsRoot(org.apache.commons.vfs.FileSystemOptions, boolean)
public void setTimeout(FileSystemOptions opts, java.lang.Integer timeout)
opts
- timeout
- public java.lang.Integer getTimeout(FileSystemOptions opts)
opts
- setTimeout(org.apache.commons.vfs.FileSystemOptions, java.lang.Integer)
protected java.lang.Class getConfigClass()
getConfigClass
in class FileSystemConfigBuilder
public void setProxyHost(FileSystemOptions opts, java.lang.String proxyHost)
proxyHost
- the hostsetProxyPort(org.apache.commons.vfs.FileSystemOptions, int)
public void setProxyPort(FileSystemOptions opts, int proxyPort)
proxyPort
- the portsetProxyHost(org.apache.commons.vfs.FileSystemOptions, java.lang.String)
public java.lang.String getProxyHost(FileSystemOptions opts)
setProxyPort(org.apache.commons.vfs.FileSystemOptions, int)
public int getProxyPort(FileSystemOptions opts)
setProxyHost(org.apache.commons.vfs.FileSystemOptions, java.lang.String)
public void setProxyType(FileSystemOptions opts, SftpFileSystemConfigBuilder.ProxyType proxyType)
public SftpFileSystemConfigBuilder.ProxyType getProxyType(FileSystemOptions opts)
public void setPreferredAuthentications(FileSystemOptions opts, java.lang.String preferredAuthentications)
public java.lang.String getPreferredAuthentications(FileSystemOptions opts)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |