public class SftpFileSystemConfigBuilder
extends org.apache.commons.vfs2.FileSystemConfigBuilder
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getCharset(org.apache.commons.vfs2.FileSystemOptions opts)
Get the character encoding to use.
|
java.lang.String |
getCompression(org.apache.commons.vfs2.FileSystemOptions opts)
Get the compression algorithm to use.
|
protected java.lang.Class |
getConfigClass() |
SshHostKeyValidator |
getHostKeyVerification(org.apache.commons.vfs2.FileSystemOptions opts)
Get the host key validator to use.
|
java.io.File[] |
getIdentities(org.apache.commons.vfs2.FileSystemOptions opts)
Get the files contain private keys (for authentication) to use.
|
static SftpFileSystemConfigBuilder |
getInstance()
Get a static instance.
|
java.io.File |
getKnownHosts(org.apache.commons.vfs2.FileSystemOptions opts)
Get the file to use to store known hosts.
|
SshClient |
getSshClient(org.apache.commons.vfs2.FileSystemOptions opts)
Get the shared SSH client to use.
|
void |
setCharset(org.apache.commons.vfs2.FileSystemOptions opts,
java.lang.String charset)
Set the character encoding to use.
|
void |
setCompression(org.apache.commons.vfs2.FileSystemOptions opts,
java.lang.String compression)
Set the compression algorithm to use.
|
void |
setHostKeyVerification(org.apache.commons.vfs2.FileSystemOptions opts,
SshHostKeyValidator hostKeyVerification)
Set the host key validator to use.
|
void |
setIdentities(org.apache.commons.vfs2.FileSystemOptions opts,
java.io.File[] identities)
Set the files contain private keys (for authentication) to use.
|
void |
setKnownHosts(org.apache.commons.vfs2.FileSystemOptions opts,
java.io.File sshdir)
Set the file to use to store known hosts.
|
void |
setSshClient(org.apache.commons.vfs2.FileSystemOptions opts,
SshClient sshClient)
Set the shared SSH client to use.
|
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, setRootURIpublic static SftpFileSystemConfigBuilder getInstance()
public void setKnownHosts(org.apache.commons.vfs2.FileSystemOptions opts,
java.io.File sshdir)
opts - optionssshdir - directory contain known hosts filepublic java.io.File getKnownHosts(org.apache.commons.vfs2.FileSystemOptions opts)
opts - optionspublic void setHostKeyVerification(org.apache.commons.vfs2.FileSystemOptions opts,
SshHostKeyValidator hostKeyVerification)
opts - optionshostKeyVerification - host key validatorpublic SshHostKeyValidator getHostKeyVerification(org.apache.commons.vfs2.FileSystemOptions opts)
opts - optionspublic void setSshClient(org.apache.commons.vfs2.FileSystemOptions opts,
SshClient sshClient)
SftpClient will be created fron the
existing connection.opts - optionssshClient - clientpublic SshClient getSshClient(org.apache.commons.vfs2.FileSystemOptions opts)
SftpClient will be created fron the
existing connection.opts - optionspublic void setCharset(org.apache.commons.vfs2.FileSystemOptions opts,
java.lang.String charset)
opts - optionscharset - character encodingpublic java.lang.String getCharset(org.apache.commons.vfs2.FileSystemOptions opts)
opts - optionspublic void setIdentities(org.apache.commons.vfs2.FileSystemOptions opts,
java.io.File[] identities)
opts - optionsidentities - files contain private keys (for authentication) to use.public java.io.File[] getIdentities(org.apache.commons.vfs2.FileSystemOptions opts)
opts - optionspublic void setCompression(org.apache.commons.vfs2.FileSystemOptions opts,
java.lang.String compression)
opts - optionscompression - compressionpublic java.lang.String getCompression(org.apache.commons.vfs2.FileSystemOptions opts)
opts - optionsprotected java.lang.Class getConfigClass()
getConfigClass in class org.apache.commons.vfs2.FileSystemConfigBuilderCopyright © 2018. All rights reserved.