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.applyExtensionFileAttributes(SftpSubsystemProxy subsystem,
Path file,
Map<String,byte[]> extensions,
LinkOption... options)
Invoked in order to allow processing of custom file attributes
|
default void |
SftpFileSystemAccessor.closeDirectory(SftpSubsystemProxy subsystem,
DirectoryHandle dirHandle,
Path dir,
String handle,
DirectoryStream<Path> ds)
Called when a directory stream is no longer required
|
default void |
SftpFileSystemAccessor.closeFile(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(SftpSubsystemProxy subsystem,
Path src,
Path dst,
Collection<CopyOption> opts) |
default void |
SftpFileSystemAccessor.createDirectory(SftpSubsystemProxy subsystem,
Path path) |
default void |
SftpFileSystemAccessor.createLink(SftpSubsystemProxy subsystem,
Path link,
Path existing,
boolean symLink)
Invoked in order to create a link to a path
|
default DirectoryStream<Path> |
SftpFileSystemAccessor.openDirectory(SftpSubsystemProxy subsystem,
DirectoryHandle dirHandle,
Path dir,
String handle,
LinkOption... linkOptions)
Called when a new directory stream is requested
|
default SeekableByteChannel |
SftpFileSystemAccessor.openFile(SftpSubsystemProxy subsystem,
FileHandle fileHandle,
Path file,
String handle,
Set<? extends OpenOption> options,
FileAttribute<?>... attrs)
Called whenever a new file is opened
|
default void |
SftpFileSystemAccessor.putRemoteFileName(SftpSubsystemProxy subsystem,
Path path,
Buffer buf,
String name,
boolean shortName)
Invoked in order to encode the outgoing referenced file name/path
|
default Map<String,?> |
SftpFileSystemAccessor.readFileAttributes(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(SftpSubsystemProxy subsystem,
Path path,
boolean isDirectory) |
default void |
SftpFileSystemAccessor.renameFile(SftpSubsystemProxy subsystem,
Path oldPath,
Path newPath,
Collection<CopyOption> opts) |
default LinkOption[] |
SftpFileSystemAccessor.resolveFileAccessLinkOptions(SftpSubsystemProxy subsystem,
Path file,
int cmd,
String extension,
boolean followLinks)
Invoked in order to determine the symbolic link follow options
|
default UserPrincipal |
SftpFileSystemAccessor.resolveFileOwner(SftpSubsystemProxy subsystem,
Path file,
UserPrincipal name) |
default GroupPrincipal |
SftpFileSystemAccessor.resolveGroupOwner(SftpSubsystemProxy subsystem,
Path file,
GroupPrincipal name) |
default String |
SftpFileSystemAccessor.resolveLinkTarget(SftpSubsystemProxy subsystem,
Path link) |
default Path |
SftpFileSystemAccessor.resolveLocalFilePath(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 NavigableMap<String,Object> |
SftpFileSystemAccessor.resolveReportedFileAttributes(SftpSubsystemProxy subsystem,
Path file,
int flags,
NavigableMap<String,Object> attrs,
LinkOption... options)
Invoked in order to allow intervention to the reported file attributes - e.g., add custom/extended properties
|
default void |
SftpFileSystemAccessor.setFileAccessControl(SftpSubsystemProxy subsystem,
Path file,
List<AclEntry> acl,
LinkOption... options) |
default void |
SftpFileSystemAccessor.setFileAttribute(SftpSubsystemProxy subsystem,
Path file,
String view,
String attribute,
Object value,
LinkOption... options)
Sets a view attribute for a local file
|
default void |
SftpFileSystemAccessor.setFileOwner(SftpSubsystemProxy subsystem,
Path file,
Principal value,
LinkOption... options) |
default void |
SftpFileSystemAccessor.setFilePermissions(SftpSubsystemProxy subsystem,
Path file,
Set<PosixFilePermission> perms,
LinkOption... options) |
default void |
SftpFileSystemAccessor.setGroupOwner(SftpSubsystemProxy subsystem,
Path file,
Principal value,
LinkOption... options) |
default void |
SftpFileSystemAccessor.syncFileData(SftpSubsystemProxy subsystem,
FileHandle fileHandle,
Path file,
String handle,
Channel channel)
Called when file meta-data re-synchronization is required
|
default FileLock |
SftpFileSystemAccessor.tryLock(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–2024 The Apache Software Foundation. All rights reserved.