Package org.apache.sshd.sftp.server
Interface SftpSubsystemEnvironment
-
- All Superinterfaces:
ServerChannelSessionHolder
,ServerSessionHolder
,SessionContextHolder
,SessionHolder<ServerSession>
,SftpFileSystemAccessorProvider
,SftpUnsupportedAttributePolicyProvider
- All Known Subinterfaces:
SftpSubsystemProxy
- All Known Implementing Classes:
AbstractSftpSubsystemHelper
,SftpSubsystem
public interface SftpSubsystemEnvironment extends SessionHolder<ServerSession>, ServerSessionHolder, ServerChannelSessionHolder, SftpFileSystemAccessorProvider, SftpUnsupportedAttributePolicyProvider
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
ALL_SFTP_IMPL
static int
HIGHER_SFTP_IMPL
static int
LOWER_SFTP_IMPL
static java.util.List<java.lang.Integer>
SUPPORTED_SFTP_VERSIONS
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description java.nio.file.Path
getDefaultDirectory()
default ServerSession
getSession()
int
getVersion()
-
Methods inherited from interface org.apache.sshd.server.channel.ServerChannelSessionHolder
getServerChannelSession
-
Methods inherited from interface org.apache.sshd.server.session.ServerSessionHolder
getServerSession
-
Methods inherited from interface org.apache.sshd.common.session.SessionHolder
getSessionContext
-
Methods inherited from interface org.apache.sshd.sftp.server.SftpFileSystemAccessorProvider
getFileSystemAccessor
-
Methods inherited from interface org.apache.sshd.sftp.server.SftpUnsupportedAttributePolicyProvider
getUnsupportedAttributePolicy
-
-
-
-
Field Detail
-
LOWER_SFTP_IMPL
static final int LOWER_SFTP_IMPL
- See Also:
- Constant Field Values
-
HIGHER_SFTP_IMPL
static final int HIGHER_SFTP_IMPL
- See Also:
- Constant Field Values
-
SUPPORTED_SFTP_VERSIONS
static final java.util.List<java.lang.Integer> SUPPORTED_SFTP_VERSIONS
-
ALL_SFTP_IMPL
static final java.lang.String ALL_SFTP_IMPL
-
-
Method Detail
-
getSession
default ServerSession getSession()
- Specified by:
getSession
in interfaceSessionHolder<ServerSession>
-
getVersion
int getVersion()
- Returns:
- The negotiated version
-
getDefaultDirectory
java.nio.file.Path getDefaultDirectory()
- Returns:
- The default root directory used to resolve relative paths - a.k.a. the
chroot
location
-
-