public class SftpFileAdaptor extends FileAdaptor
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ADAPTOR_DESCRIPTION
A description of this adaptor
|
private static java.lang.String[] |
ADAPTOR_LOCATIONS
The locations supported by this adaptor
|
static java.lang.String |
ADAPTOR_NAME
The name of this adaptor
|
static java.lang.String |
AGENT
Enable the use of an ssh-agent
|
static java.lang.String |
AGENT_FORWARDING
Enable the use of ssh-agent-forwarding
|
static java.lang.String |
AUTOMATICALLY_ADD_HOST_KEY
Enable strict host key checking.
|
static java.lang.String |
BUFFER_SIZE
The buffer size to use when copying data.
|
static java.lang.String |
CONNECTION_TIMEOUT
Property for maximum history length for finished jobs
|
static int |
DEFAULT_PORT
The default SSH port
|
static java.lang.String |
GATEWAY
Add gateway to access machine.
|
static java.lang.String |
LOAD_SSH_CONFIG
Load the OpenSSH config file by default.
|
static java.lang.String |
LOAD_STANDARD_KNOWN_HOSTS
Load the known_hosts file by default.
|
private static org.slf4j.Logger |
LOGGER |
static java.lang.String |
PREFIX
All our own properties start with this prefix.
|
static java.lang.String |
SSH_CONFIG_FILE
OpenSSH config filename.
|
static java.lang.String |
STRICT_HOST_KEY_CHECKING
Enable strict host key checking.
|
private static XenonPropertyDescription[] |
VALID_PROPERTIES
List of properties supported by this SSH adaptor
|
ADAPTORS_PREFIX
Constructor and Description |
---|
SftpFileAdaptor() |
Modifier and Type | Method and Description |
---|---|
boolean |
canCreateSymboliclinks()
Can this adaptor create symbolic links ?
In third party copy, a file is copied between two remote locations, without passing through the local machine first.
|
FileSystem |
createFileSystem(java.lang.String location,
Credential credential,
java.util.Map<java.lang.String,java.lang.String> properties) |
private java.lang.String |
getCurrentWorkingDirectory(org.apache.sshd.client.subsystem.sftp.SftpClient sftpClient,
java.lang.String location) |
java.lang.Class[] |
getSupportedCredentials()
Get the supported credential types for this adaptor.
|
boolean |
supportsReadingPosixPermissions() |
boolean |
supportsSettingPosixPermissions() |
canAppend, canReadSymboliclinks, isConnectionless, needsSizeBeforehand, supportsRename, supportsThirdPartyCopy
getDescription, getName, getNewUniqueID, getSupportedLocations, getSupportedProperties
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getDescription, getName, getSupportedLocations, getSupportedProperties
private static final org.slf4j.Logger LOGGER
public static final java.lang.String ADAPTOR_NAME
public static final int DEFAULT_PORT
public static final java.lang.String ADAPTOR_DESCRIPTION
public static final java.lang.String PREFIX
public static final java.lang.String STRICT_HOST_KEY_CHECKING
public static final java.lang.String AGENT
public static final java.lang.String AGENT_FORWARDING
public static final java.lang.String LOAD_STANDARD_KNOWN_HOSTS
public static final java.lang.String LOAD_SSH_CONFIG
public static final java.lang.String SSH_CONFIG_FILE
public static final java.lang.String AUTOMATICALLY_ADD_HOST_KEY
public static final java.lang.String GATEWAY
public static final java.lang.String CONNECTION_TIMEOUT
public static final java.lang.String BUFFER_SIZE
private static final java.lang.String[] ADAPTOR_LOCATIONS
private static final XenonPropertyDescription[] VALID_PROPERTIES
public boolean canCreateSymboliclinks()
FileSystemAdaptorDescription
canCreateSymboliclinks
in interface FileSystemAdaptorDescription
canCreateSymboliclinks
in class FileAdaptor
public FileSystem createFileSystem(java.lang.String location, Credential credential, java.util.Map<java.lang.String,java.lang.String> properties) throws XenonException
createFileSystem
in class FileAdaptor
XenonException
private java.lang.String getCurrentWorkingDirectory(org.apache.sshd.client.subsystem.sftp.SftpClient sftpClient, java.lang.String location) throws XenonException
XenonException
public boolean supportsReadingPosixPermissions()
supportsReadingPosixPermissions
in interface FileSystemAdaptorDescription
supportsReadingPosixPermissions
in class FileAdaptor
public boolean supportsSettingPosixPermissions()
supportsSettingPosixPermissions
in interface FileSystemAdaptorDescription
supportsSettingPosixPermissions
in class FileAdaptor
public java.lang.Class[] getSupportedCredentials()
AdaptorDescription