Package | Description |
---|---|
org.apache.sshd.sftp.server |
Modifier and Type | Class and Description |
---|---|
class |
AbstractSftpSubsystemHelper |
class |
SftpSubsystem
SFTP subsystem
|
Modifier and Type | Method and Description |
---|---|
default void |
SftpFileSystemAccessor.closeDirectory(ServerSession session,
SftpSubsystemProxy subsystem,
DirectoryHandle dirHandle,
java.nio.file.Path dir,
java.lang.String handle,
java.nio.file.DirectoryStream<java.nio.file.Path> ds)
Called when a directory stream is no longer required
|
default void |
SftpFileSystemAccessor.closeFile(ServerSession session,
SftpSubsystemProxy subsystem,
FileHandle fileHandle,
java.nio.file.Path file,
java.lang.String handle,
java.nio.channels.Channel channel,
java.util.Set<? extends java.nio.file.OpenOption> options)
Called to inform the accessor that it should close the file
|
default void |
SftpFileSystemAccessor.copyFile(ServerSession session,
SftpSubsystemProxy subsystem,
java.nio.file.Path src,
java.nio.file.Path dst,
java.util.Collection<java.nio.file.CopyOption> opts) |
default void |
SftpFileSystemAccessor.createDirectory(ServerSession session,
SftpSubsystemProxy subsystem,
java.nio.file.Path path) |
default void |
SftpFileSystemAccessor.createLink(ServerSession session,
SftpSubsystemProxy subsystem,
java.nio.file.Path link,
java.nio.file.Path existing,
boolean symLink)
Invoked in order to create a link to a path
|
default java.nio.file.DirectoryStream<java.nio.file.Path> |
SftpFileSystemAccessor.openDirectory(ServerSession session,
SftpSubsystemProxy subsystem,
DirectoryHandle dirHandle,
java.nio.file.Path dir,
java.lang.String handle)
Called when a new directory stream is requested
|
default java.nio.channels.SeekableByteChannel |
SftpFileSystemAccessor.openFile(ServerSession session,
SftpSubsystemProxy subsystem,
FileHandle fileHandle,
java.nio.file.Path file,
java.lang.String handle,
java.util.Set<? extends java.nio.file.OpenOption> options,
java.nio.file.attribute.FileAttribute<?>... attrs)
Called whenever a new file is opened
|
default java.util.Map<java.lang.String,?> |
SftpFileSystemAccessor.readFileAttributes(ServerSession session,
SftpSubsystemProxy subsystem,
java.nio.file.Path file,
java.lang.String view,
java.nio.file.LinkOption... options)
Invoked when required to retrieve file attributes for a specific file system view
|
default void |
SftpFileSystemAccessor.removeFile(ServerSession session,
SftpSubsystemProxy subsystem,
java.nio.file.Path path,
boolean isDirectory) |
default void |
SftpFileSystemAccessor.renameFile(ServerSession session,
SftpSubsystemProxy subsystem,
java.nio.file.Path oldPath,
java.nio.file.Path newPath,
java.util.Collection<java.nio.file.CopyOption> opts) |
default java.nio.file.attribute.UserPrincipal |
SftpFileSystemAccessor.resolveFileOwner(ServerSession session,
SftpSubsystemProxy subsystem,
java.nio.file.Path file,
java.nio.file.attribute.UserPrincipal name) |
default java.nio.file.attribute.GroupPrincipal |
SftpFileSystemAccessor.resolveGroupOwner(ServerSession session,
SftpSubsystemProxy subsystem,
java.nio.file.Path file,
java.nio.file.attribute.GroupPrincipal name) |
default java.lang.String |
SftpFileSystemAccessor.resolveLinkTarget(ServerSession session,
SftpSubsystemProxy subsystem,
java.nio.file.Path link) |
default java.nio.file.Path |
SftpFileSystemAccessor.resolveLocalFilePath(ServerSession session,
SftpSubsystemProxy subsystem,
java.nio.file.Path rootDir,
java.lang.String remotePath)
Invoked in order to resolve remote file paths reference by the client into ones accessible by the server
|
default void |
SftpFileSystemAccessor.setFileAccessControl(ServerSession session,
SftpSubsystemProxy subsystem,
java.nio.file.Path file,
java.util.List<java.nio.file.attribute.AclEntry> acl,
java.nio.file.LinkOption... options) |
default void |
SftpFileSystemAccessor.setFileAttribute(ServerSession session,
SftpSubsystemProxy subsystem,
java.nio.file.Path file,
java.lang.String view,
java.lang.String attribute,
java.lang.Object value,
java.nio.file.LinkOption... options)
Sets a view attribute for a local file
|
default void |
SftpFileSystemAccessor.setFileOwner(ServerSession session,
SftpSubsystemProxy subsystem,
java.nio.file.Path file,
java.security.Principal value,
java.nio.file.LinkOption... options) |
default void |
SftpFileSystemAccessor.setFilePermissions(ServerSession session,
SftpSubsystemProxy subsystem,
java.nio.file.Path file,
java.util.Set<java.nio.file.attribute.PosixFilePermission> perms,
java.nio.file.LinkOption... options) |
default void |
SftpFileSystemAccessor.setGroupOwner(ServerSession session,
SftpSubsystemProxy subsystem,
java.nio.file.Path file,
java.security.Principal value,
java.nio.file.LinkOption... options) |
default void |
SftpFileSystemAccessor.syncFileData(ServerSession session,
SftpSubsystemProxy subsystem,
FileHandle fileHandle,
java.nio.file.Path file,
java.lang.String handle,
java.nio.channels.Channel channel)
Called when file meta-data re-synchronization is required
|
default java.nio.channels.FileLock |
SftpFileSystemAccessor.tryLock(ServerSession session,
SftpSubsystemProxy subsystem,
FileHandle fileHandle,
java.nio.file.Path file,
java.lang.String handle,
java.nio.channels.Channel channel,
long position,
long size,
boolean shared)
Called when locking a section of a file is requested
|