public final class SftpModuleProperties extends Object
| Modifier and Type | Field and Description |
|---|---|
static Property<String> |
ACL_SUPPORTED_MASK
Comma separate list of
SSH_ACL_CAP_xxx names - where name can be without the prefix. |
static Property<Boolean> |
APPEND_END_OF_LIST_INDICATOR
Used to control whether to append the end-of-list indicator for SSH_FXP_NAME responses via
SftpHelper.indicateEndOfNamesList(Buffer, int, PropertyResolver, boolean) call, as indicated by
SFTP v6 - section 9.4 |
static Property<Duration> |
AUTH_TIME
|
static Property<Boolean> |
AUTO_FOLLOW_LINKS
Whether to automatically follow symbolic links when resolving paths
|
static Property<String> |
CLIENT_EXTENSIONS
Allows controlling reports of which client extensions are supported (and reported via "support" and
"support2" server extensions) as a comma-separate list of names.
|
static Property<Duration> |
CONNECT_TIME
|
static Property<Integer> |
COPY_BUF_SIZE
Internal allocate buffer size when copying data to/from the channel
|
static int |
DEFAULT_FILE_HANDLE_ROUNDS |
static int |
DEFAULT_FILE_HANDLE_SIZE |
static Property<Integer> |
FILE_HANDLE_SIZE
Size in bytes of the opaque handle value
|
static Property<Integer> |
MAX_FILE_HANDLE_RAND_ROUNDS
Max.
|
static int |
MAX_FILE_HANDLE_ROUNDS |
static int |
MAX_FILE_HANDLE_SIZE |
static Property<Integer> |
MAX_OPEN_HANDLES_PER_SESSION
Properties key for the maximum of available open handles per session.
|
static Property<Integer> |
MAX_READDATA_PACKET_LENGTH
Force the use of a max.
|
static Property<Integer> |
MAX_READDIR_DATA_SIZE
Maximum amount of data allocated for listing the contents of a directory in any single invocation of
SftpSubsystem.doReadDir(Buffer, int) |
static Property<Integer> |
MAX_WRITEDATA_PACKET_LENGTH
Force the use of a max.
|
static int |
MIN_FILE_HANDLE_ROUNDS |
static int |
MIN_FILE_HANDLE_SIZE |
static int |
MIN_READDATA_PACKET_LENGTH |
static int |
MIN_WRITEDATA_PACKET_LENGTH |
static Property<Charset> |
NAME_DECODER_CHARSET
|
static Property<Charset> |
NAME_DECODING_CHARSET
Used to indicate the
Charset (or its name) for decoding referenced files/folders names - extracted from
the client session when 1st initialized. |
static Property<String> |
NEWLINE_VALUE
Property that can be used to set the reported NL value.
|
static Property<String> |
OPENSSH_EXTENSIONS
Comma-separated list of which
OpenSSH extensions are reported and what version is reported for each -
format: name=version. |
static Property<Integer> |
POOL_CORE_SIZE
If >= 0, that many channels may be kept open in the channel pool of an
SftpFileSystem even if they are idle; by default 1. |
static Property<Duration> |
POOL_LIFE_TIME
A timeout after which idle channels in the pool of an
SftpFileSystem are
removed from the pool and closed; by default 10 seconds. |
static Property<Integer> |
POOL_SIZE
The maximum size of the channel pool used by an
SftpFileSystem; by default
8. |
static Property<Integer> |
READ_BUFFER_SIZE
|
static Property<Duration> |
SFTP_CHANNEL_OPEN_TIMEOUT
Property that can be used on the
FactoryManager to control the internal timeout
used by the client to open a channel. |
static Property<Integer> |
SFTP_VERSION
Force the use of a given sftp version
|
static Property<Boolean> |
TOLERATE_EXCESS_DATA
Apparently some SFTP servers may return more data than requested in SFTP read requests.
|
static Property<Integer> |
WRITE_BUFFER_SIZE
|
static Property<Integer> |
WRITE_CHUNK_SIZE
Property used to avoid large buffers when
AbstractSftpClient.write(SftpClient.Handle, long, byte[], int, int) is
invoked with a large buffer size. |
public static final Property<Charset> NAME_DECODING_CHARSET
Charset (or its name) for decoding referenced files/folders names - extracted from
the client session when 1st initialized.public static final Property<Duration> SFTP_CHANNEL_OPEN_TIMEOUT
FactoryManager to control the internal timeout
used by the client to open a channel.public static final Property<Integer> POOL_SIZE
SftpFileSystem; by default
8. The value must be > zero.SftpFileSystempublic static final Property<Duration> POOL_LIFE_TIME
SftpFileSystem are
removed from the pool and closed; by default 10 seconds. If set to zero, channels in the pool will not expire and
will be closed only then the file system is closed, or if the server closes them.
The duration should not be shorter than 1 millisecond. If it is, 1 millisecond will be assumed.
SftpFileSystempublic static final Property<Integer> POOL_CORE_SIZE
SftpFileSystem even if they are idle; by default 1. If >=
POOL_SIZE, channels will not expire and will be closed only then the file system is closed, or if the
server closes them.SftpFileSystempublic static final Property<Integer> WRITE_CHUNK_SIZE
AbstractSftpClient.write(SftpClient.Handle, long, byte[], int, int) is
invoked with a large buffer size.public static final Property<Integer> COPY_BUF_SIZE
public static final Property<Boolean> APPEND_END_OF_LIST_INDICATOR
SftpHelper.indicateEndOfNamesList(Buffer, int, PropertyResolver, boolean) call, as indicated by
SFTP v6 - section 9.4public static final Property<Boolean> AUTO_FOLLOW_LINKS
public static final Property<String> CLIENT_EXTENSIONS
AbstractSftpSubsystemHelper.executeExtendedCommand(Buffer, int, String) command accordingly. If empty
string is set then no server extensions are reportedpublic static final Property<String> OPENSSH_EXTENSIONS
OpenSSH extensions are reported and what version is reported for each -
format: name=version. If empty value set, then no such extensions are reported. Otherwise, the
AbstractSftpSubsystemHelper.DEFAULT_OPEN_SSH_EXTENSIONS are usedpublic static final Property<String> ACL_SUPPORTED_MASK
SSH_ACL_CAP_xxx names - where name can be without the prefix. If not defined then
AbstractSftpSubsystemHelper.DEFAULT_ACL_SUPPORTED_MASK is usedpublic static final Property<String> NEWLINE_VALUE
IoUtils.EOL is usedpublic static final int MIN_READDATA_PACKET_LENGTH
public static final Property<Integer> MAX_READDATA_PACKET_LENGTH
AbstractSftpSubsystemHelper.doRead(Buffer, int) protection
against malicious packetspublic static final int MIN_WRITEDATA_PACKET_LENGTH
public static final Property<Integer> MAX_WRITEDATA_PACKET_LENGTH
AbstractSftpSubsystemHelper.doWrite(Buffer, int) protection
against malicious packetspublic static final Property<Integer> MAX_OPEN_HANDLES_PER_SESSION
public static final int MIN_FILE_HANDLE_SIZE
public static final int DEFAULT_FILE_HANDLE_SIZE
public static final int MAX_FILE_HANDLE_SIZE
public static final Property<Integer> FILE_HANDLE_SIZE
DEFAULT_FILE_HANDLE_SIZEpublic static final int MIN_FILE_HANDLE_ROUNDS
public static final int DEFAULT_FILE_HANDLE_ROUNDS
public static final int MAX_FILE_HANDLE_ROUNDS
public static final Property<Integer> MAX_FILE_HANDLE_RAND_ROUNDS
public static final Property<Integer> MAX_READDIR_DATA_SIZE
SftpSubsystem.doReadDir(Buffer, int)public static final Property<Boolean> TOLERATE_EXCESS_DATA
true, such excess data is ignored and a warning is logged. If the flag
is false (the default), an exception is thrown. The flag can be set on an SSH session or on the
client channel of an SftpClient.Copyright © 2018–2024 The Apache Software Foundation. All rights reserved.