Package org.apache.sshd.sftp.server
Interface SftpSubsystemEnvironment
-
- All Superinterfaces:
ServerSessionHolder,SessionContextHolder,SessionHolder<ServerSession>
- All Known Subinterfaces:
SftpSubsystemProxy
- All Known Implementing Classes:
AbstractSftpSubsystemHelper,SftpSubsystem
public interface SftpSubsystemEnvironment extends SessionHolder<ServerSession>, ServerSessionHolder
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringALL_SFTP_IMPLstatic intHIGHER_SFTP_IMPLstatic intLOWER_SFTP_IMPLstatic 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.PathgetDefaultDirectory()SftpFileSystemAccessorgetFileSystemAccessor()default ServerSessiongetSession()UnsupportedAttributePolicygetUnsupportedAttributePolicy()intgetVersion()-
Methods inherited from interface org.apache.sshd.server.session.ServerSessionHolder
getServerSession
-
Methods inherited from interface org.apache.sshd.common.session.SessionHolder
getSessionContext
-
-
-
-
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:
getSessionin interfaceSessionHolder<ServerSession>
-
getVersion
int getVersion()
- Returns:
- The negotiated version
-
getFileSystemAccessor
SftpFileSystemAccessor getFileSystemAccessor()
- Returns:
- The
SftpFileSystemAccessorused 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
chrootlocation
-
-