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,
Path dir,
String handle,
DirectoryStream<Path> ds)
Called when a directory stream is no longer required
|
default void |
SftpFileSystemAccessor.closeFile(ServerSession session,
SftpSubsystemProxy subsystem,
FileHandle fileHandle,
Path file,
String handle,
Channel channel,
Set<? extends OpenOption> options)
Called to inform the accessor that it should close the file
|
default void |
SftpFileSystemAccessor.copyFile(ServerSession session,
SftpSubsystemProxy subsystem,
Path src,
Path dst,
Collection<CopyOption> opts) |
default void |
SftpFileSystemAccessor.createDirectory(ServerSession session,
SftpSubsystemProxy subsystem,
Path path) |
default void |
SftpFileSystemAccessor.createLink(ServerSession session,
SftpSubsystemProxy subsystem,
Path link,
Path existing,
boolean symLink)
Invoked in order to create a link to a path
|
default DirectoryStream<Path> |
SftpFileSystemAccessor.openDirectory(ServerSession session,
SftpSubsystemProxy subsystem,
DirectoryHandle dirHandle,
Path dir,
String handle)
Called when a new directory stream is requested
|
default SeekableByteChannel |
SftpFileSystemAccessor.openFile(ServerSession session,
SftpSubsystemProxy subsystem,
FileHandle fileHandle,
Path file,
String handle,
Set<? extends OpenOption> options,
FileAttribute<?>... attrs)
Called whenever a new file is opened
|
default Map<String,?> |
SftpFileSystemAccessor.readFileAttributes(ServerSession session,
SftpSubsystemProxy subsystem,
Path file,
String view,
LinkOption... options)
Invoked when required to retrieve file attributes for a specific file system view
|
default void |
SftpFileSystemAccessor.removeFile(ServerSession session,
SftpSubsystemProxy subsystem,
Path path,
boolean isDirectory) |
default void |
SftpFileSystemAccessor.renameFile(ServerSession session,
SftpSubsystemProxy subsystem,
Path oldPath,
Path newPath,
Collection<CopyOption> opts) |
default UserPrincipal |
SftpFileSystemAccessor.resolveFileOwner(ServerSession session,
SftpSubsystemProxy subsystem,
Path file,
UserPrincipal name) |
default GroupPrincipal |
SftpFileSystemAccessor.resolveGroupOwner(ServerSession session,
SftpSubsystemProxy subsystem,
Path file,
GroupPrincipal name) |
default String |
SftpFileSystemAccessor.resolveLinkTarget(ServerSession session,
SftpSubsystemProxy subsystem,
Path link) |
default Path |
SftpFileSystemAccessor.resolveLocalFilePath(ServerSession session,
SftpSubsystemProxy subsystem,
Path rootDir,
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,
Path file,
List<AclEntry> acl,
LinkOption... options) |
default void |
SftpFileSystemAccessor.setFileAttribute(ServerSession session,
SftpSubsystemProxy subsystem,
Path file,
String view,
String attribute,
Object value,
LinkOption... options)
Sets a view attribute for a local file
|
default void |
SftpFileSystemAccessor.setFileOwner(ServerSession session,
SftpSubsystemProxy subsystem,
Path file,
Principal value,
LinkOption... options) |
default void |
SftpFileSystemAccessor.setFilePermissions(ServerSession session,
SftpSubsystemProxy subsystem,
Path file,
Set<PosixFilePermission> perms,
LinkOption... options) |
default void |
SftpFileSystemAccessor.setGroupOwner(ServerSession session,
SftpSubsystemProxy subsystem,
Path file,
Principal value,
LinkOption... options) |
default void |
SftpFileSystemAccessor.syncFileData(ServerSession session,
SftpSubsystemProxy subsystem,
FileHandle fileHandle,
Path file,
String handle,
Channel channel)
Called when file meta-data re-synchronization is required
|
default FileLock |
SftpFileSystemAccessor.tryLock(ServerSession session,
SftpSubsystemProxy subsystem,
FileHandle fileHandle,
Path file,
String handle,
Channel channel,
long position,
long size,
boolean shared)
Called when locking a section of a file is requested
|
Copyright © 2008–2022 The Apache Software Foundation. All rights reserved.