Interface SftpSubsystemEnvironment
-
- All Superinterfaces:
ServerSessionHolder
,SessionContextHolder
,SessionHolder<ServerSession>
- All Known Implementing Classes:
AbstractSftpSubsystemHelper
,SftpSubsystem
public interface SftpSubsystemEnvironment extends SessionHolder<ServerSession>, ServerSessionHolder
-
-
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.lang.String
SFTP_VERSION
Force the use of a given sftp version
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description java.nio.file.Path
getDefaultDirectory()
SftpFileSystemAccessor
getFileSystemAccessor()
default ServerSession
getSession()
UnsupportedAttributePolicy
getUnsupportedAttributePolicy()
int
getVersion()
-
Methods inherited from interface org.apache.sshd.server.session.ServerSessionHolder
getServerSession
-
Methods inherited from interface org.apache.sshd.common.session.SessionHolder
getSessionContext
-
-
-
-
Field Detail
-
SFTP_VERSION
static final java.lang.String SFTP_VERSION
Force the use of a given sftp version- See Also:
- Constant Field Values
-
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
-
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
-
getFileSystemAccessor
SftpFileSystemAccessor getFileSystemAccessor()
- Returns:
- The
SftpFileSystemAccessor
used to access effective server-side paths
-
getUnsupportedAttributePolicy
UnsupportedAttributePolicy getUnsupportedAttributePolicy()
- Returns:
- The selected behavior in case some unsupported attributes are requested
-
getDefaultDirectory
java.nio.file.Path getDefaultDirectory()
- Returns:
- The default root directory used to resolve relative paths
- a.k.a. the
chroot
location
-
-