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,
java.nio.file.Path file,
java.util.Map<java.lang.String,byte[]> extensions,
java.nio.file.LinkOption... options)
Invoked in order to allow processing of custom file attributes
|
default void |
SftpFileSystemAccessor.closeDirectory(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(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(SftpSubsystemProxy subsystem,
java.nio.file.Path src,
java.nio.file.Path dst,
java.util.Collection<java.nio.file.CopyOption> opts) |
default void |
SftpFileSystemAccessor.createDirectory(SftpSubsystemProxy subsystem,
java.nio.file.Path path) |
default void |
SftpFileSystemAccessor.createLink(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(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(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 void |
SftpFileSystemAccessor.putRemoteFileName(SftpSubsystemProxy subsystem,
java.nio.file.Path path,
Buffer buf,
java.lang.String name,
boolean shortName)
Invoked in order to encode the outgoing referenced file name/path
|
default java.util.Map<java.lang.String,?> |
SftpFileSystemAccessor.readFileAttributes(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(SftpSubsystemProxy subsystem,
java.nio.file.Path path,
boolean isDirectory) |
default void |
SftpFileSystemAccessor.renameFile(SftpSubsystemProxy subsystem,
java.nio.file.Path oldPath,
java.nio.file.Path newPath,
java.util.Collection<java.nio.file.CopyOption> opts) |
default java.nio.file.LinkOption[] |
SftpFileSystemAccessor.resolveFileAccessLinkOptions(SftpSubsystemProxy subsystem,
java.nio.file.Path file,
int cmd,
java.lang.String extension,
boolean followLinks)
Invoked in order to determine the symbolic link follow options
|
default java.nio.file.attribute.UserPrincipal |
SftpFileSystemAccessor.resolveFileOwner(SftpSubsystemProxy subsystem,
java.nio.file.Path file,
java.nio.file.attribute.UserPrincipal name) |
default java.nio.file.attribute.GroupPrincipal |
SftpFileSystemAccessor.resolveGroupOwner(SftpSubsystemProxy subsystem,
java.nio.file.Path file,
java.nio.file.attribute.GroupPrincipal name) |
default java.lang.String |
SftpFileSystemAccessor.resolveLinkTarget(SftpSubsystemProxy subsystem,
java.nio.file.Path link) |
default java.nio.file.Path |
SftpFileSystemAccessor.resolveLocalFilePath(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 java.util.NavigableMap<java.lang.String,java.lang.Object> |
SftpFileSystemAccessor.resolveReportedFileAttributes(SftpSubsystemProxy subsystem,
java.nio.file.Path file,
int flags,
java.util.NavigableMap<java.lang.String,java.lang.Object> attrs,
java.nio.file.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,
java.nio.file.Path file,
java.util.List<java.nio.file.attribute.AclEntry> acl,
java.nio.file.LinkOption... options) |
default void |
SftpFileSystemAccessor.setFileAttribute(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(SftpSubsystemProxy subsystem,
java.nio.file.Path file,
java.security.Principal value,
java.nio.file.LinkOption... options) |
default void |
SftpFileSystemAccessor.setFilePermissions(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(SftpSubsystemProxy subsystem,
java.nio.file.Path file,
java.security.Principal value,
java.nio.file.LinkOption... options) |
default void |
SftpFileSystemAccessor.syncFileData(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(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
|