protected int |
AbstractSftpSubsystemHelper.appendAclSupportedExtension(Buffer buffer,
ServerSession session) |
|
protected void |
AbstractSftpSubsystemHelper.appendNewlineExtension(Buffer buffer,
ServerSession session) |
Appends the "newline" extension to the buffer.
|
protected java.util.List<AbstractOpenSSHExtensionParser.OpenSSHExtension> |
AbstractSftpSubsystemHelper.appendOpenSSHExtensions(Buffer buffer,
ServerSession session) |
|
protected void |
AbstractSftpSubsystemHelper.appendVendorIdExtension(Buffer buffer,
java.util.Map<java.lang.String,?> versionProperties,
ServerSession session) |
Appends the "vendor-id" extension to the buffer.
|
protected void |
AbstractSftpSubsystemHelper.appendVersionsExtension(Buffer buffer,
java.lang.String value,
ServerSession session) |
Appends the "versions" extension to the buffer.
|
void |
AbstractSftpEventListenerAdapter.blocked(ServerSession session,
java.lang.String remoteHandle,
FileHandle localHandle,
long offset,
long length,
int mask,
java.lang.Throwable thrown) |
|
default void |
SftpEventListener.blocked(ServerSession session,
java.lang.String remoteHandle,
FileHandle localHandle,
long offset,
long length,
int mask,
java.lang.Throwable thrown) |
Called after blocking a file section
|
void |
AbstractSftpEventListenerAdapter.blocking(ServerSession session,
java.lang.String remoteHandle,
FileHandle localHandle,
long offset,
long length,
int mask) |
|
default void |
SftpEventListener.blocking(ServerSession session,
java.lang.String remoteHandle,
FileHandle localHandle,
long offset,
long length,
int mask) |
Called prior to blocking a file section
|
default void |
SftpEventListener.closed(ServerSession session,
java.lang.String remoteHandle,
Handle localHandle,
java.lang.Throwable thrown) |
Specified file / directory has been closed
|
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
|
void |
AbstractSftpEventListenerAdapter.closing(ServerSession session,
java.lang.String remoteHandle,
Handle localHandle) |
|
default void |
SftpEventListener.closing(ServerSession session,
java.lang.String remoteHandle,
Handle localHandle) |
Specified file / directory about to be closed
|
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) |
|
void |
AbstractSftpEventListenerAdapter.created(ServerSession session,
java.nio.file.Path path,
java.util.Map<java.lang.String,?> attrs,
java.lang.Throwable thrown) |
|
default void |
SftpEventListener.created(ServerSession session,
java.nio.file.Path path,
java.util.Map<java.lang.String,?> attrs,
java.lang.Throwable thrown) |
Called after creating a directory
|
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
|
void |
AbstractSftpEventListenerAdapter.creating(ServerSession session,
java.nio.file.Path path,
java.util.Map<java.lang.String,?> attrs) |
|
default void |
SftpEventListener.creating(ServerSession session,
java.nio.file.Path path,
java.util.Map<java.lang.String,?> attrs) |
Called prior to creating a directory
|
void |
AbstractSftpEventListenerAdapter.destroying(ServerSession session) |
|
default void |
SftpEventListener.destroying(ServerSession session) |
Called when subsystem is destroyed since it was closed
|
default void |
SftpEventListener.exiting(ServerSession session,
Handle handle) |
Called when subsystem is exiting due to being destroyed
|
protected java.util.Map<java.lang.String,OptionalFeature> |
AbstractSftpSubsystemHelper.getSupportedClientExtensions(ServerSession session) |
|
void |
AbstractSftpEventListenerAdapter.initialized(ServerSession session,
int version) |
|
default void |
SftpEventListener.initialized(ServerSession session,
int version) |
Called when the SFTP protocol has been initialized
|
protected void |
SftpSubsystem.initializeSessionRelatedMember(ServerSession session,
ChannelSession channel) |
|
void |
AbstractSftpEventListenerAdapter.linked(ServerSession session,
java.nio.file.Path source,
java.nio.file.Path target,
boolean symLink,
java.lang.Throwable thrown) |
|
default void |
SftpEventListener.linked(ServerSession session,
java.nio.file.Path source,
java.nio.file.Path target,
boolean symLink,
java.lang.Throwable thrown) |
Called after creating a link
|
void |
AbstractSftpEventListenerAdapter.linking(ServerSession session,
java.nio.file.Path source,
java.nio.file.Path target,
boolean symLink) |
|
default void |
SftpEventListener.linking(ServerSession session,
java.nio.file.Path source,
java.nio.file.Path target,
boolean symLink) |
Called prior to creating a link
|
void |
AbstractSftpEventListenerAdapter.modifiedAttributes(ServerSession session,
java.nio.file.Path path,
java.util.Map<java.lang.String,?> attrs,
java.lang.Throwable thrown) |
|
default void |
SftpEventListener.modifiedAttributes(ServerSession session,
java.nio.file.Path path,
java.util.Map<java.lang.String,?> attrs,
java.lang.Throwable thrown) |
Called after modifying the attributes of a file / directory
|
void |
AbstractSftpEventListenerAdapter.modifyingAttributes(ServerSession session,
java.nio.file.Path path,
java.util.Map<java.lang.String,?> attrs) |
|
default void |
SftpEventListener.modifyingAttributes(ServerSession session,
java.nio.file.Path path,
java.util.Map<java.lang.String,?> attrs) |
Called prior to modifying the attributes of a file / directory
|
void |
AbstractSftpEventListenerAdapter.moved(ServerSession session,
java.nio.file.Path srcPath,
java.nio.file.Path dstPath,
java.util.Collection<java.nio.file.CopyOption> opts,
java.lang.Throwable thrown) |
|
default void |
SftpEventListener.moved(ServerSession session,
java.nio.file.Path srcPath,
java.nio.file.Path dstPath,
java.util.Collection<java.nio.file.CopyOption> opts,
java.lang.Throwable thrown) |
Called after renaming a file / directory
|
void |
AbstractSftpEventListenerAdapter.moving(ServerSession session,
java.nio.file.Path srcPath,
java.nio.file.Path dstPath,
java.util.Collection<java.nio.file.CopyOption> opts) |
|
default void |
SftpEventListener.moving(ServerSession session,
java.nio.file.Path srcPath,
java.nio.file.Path dstPath,
java.util.Collection<java.nio.file.CopyOption> opts) |
Called prior to renaming a file / directory
|
void |
AbstractSftpEventListenerAdapter.open(ServerSession session,
java.lang.String remoteHandle,
Handle localHandle) |
|
default void |
SftpEventListener.open(ServerSession session,
java.lang.String remoteHandle,
Handle localHandle) |
Specified file / directory has been opened
|
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 void |
SftpEventListener.openFailed(ServerSession session,
java.lang.String remotePath,
java.nio.file.Path localPath,
boolean isDirectory,
java.lang.Throwable thrown) |
|
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
|
void |
AbstractSftpEventListenerAdapter.opening(ServerSession session,
java.lang.String remoteHandle,
Handle localHandle) |
|
default void |
SftpEventListener.opening(ServerSession session,
java.lang.String remoteHandle,
Handle localHandle) |
Specified file / directory is being opened
|
default void |
SftpFileSystemAccessor.putRemoteFileName(ServerSession session,
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
|
void |
AbstractSftpEventListenerAdapter.read(ServerSession session,
java.lang.String remoteHandle,
FileHandle localHandle,
long offset,
byte[] data,
int dataOffset,
int dataLen,
int readLen,
java.lang.Throwable thrown) |
|
default void |
SftpEventListener.read(ServerSession session,
java.lang.String remoteHandle,
FileHandle localHandle,
long offset,
byte[] data,
int dataOffset,
int dataLen,
int readLen,
java.lang.Throwable thrown) |
Result of reading from a file
|
void |
AbstractSftpEventListenerAdapter.readEntries(ServerSession session,
java.lang.String remoteHandle,
DirectoryHandle localHandle,
java.util.Map<java.lang.String,java.nio.file.Path> entries) |
|
default void |
SftpEventListener.readEntries(ServerSession session,
java.lang.String remoteHandle,
DirectoryHandle localHandle,
java.util.Map<java.lang.String,java.nio.file.Path> entries) |
Result of reading entries from a directory - Note: it may be a partial result if the directory
contains more entries than can be accommodated in the response
|
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
|
void |
AbstractSftpEventListenerAdapter.reading(ServerSession session,
java.lang.String remoteHandle,
FileHandle localHandle,
long offset,
byte[] data,
int dataOffset,
int dataLen) |
|
default void |
SftpEventListener.reading(ServerSession session,
java.lang.String remoteHandle,
FileHandle localHandle,
long offset,
byte[] data,
int dataOffset,
int dataLen) |
Preparing to read from a file
|
default void |
SftpEventListener.readingEntries(ServerSession session,
java.lang.String remoteHandle,
DirectoryHandle localHandle) |
About to read entries from a directory - Note: might not be the 1st time it is called for the directory in
case several iterations are required in order to go through all the entries in the directory
|
default void |
SftpEventListener.received(ServerSession session,
int type,
int id) |
Called when a SFTP request has been received before it is processed.
|
default void |
SftpEventListener.receivedExtension(ServerSession session,
java.lang.String extension,
int id) |
|
void |
AbstractSftpEventListenerAdapter.removed(ServerSession session,
java.nio.file.Path path,
boolean isDirectory,
java.lang.Throwable thrown) |
|
default void |
SftpEventListener.removed(ServerSession session,
java.nio.file.Path path,
boolean isDirectory,
java.lang.Throwable thrown) |
Called after a file has been removed
|
default void |
SftpFileSystemAccessor.removeFile(ServerSession session,
SftpSubsystemProxy subsystem,
java.nio.file.Path path,
boolean isDirectory) |
|
void |
AbstractSftpEventListenerAdapter.removing(ServerSession session,
java.nio.file.Path path,
boolean isDirectory) |
|
default void |
SftpEventListener.removing(ServerSession session,
java.nio.file.Path path,
boolean isDirectory) |
Called prior to removing a file
|
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) |
|
protected java.util.Collection<java.lang.Integer> |
AbstractSftpSubsystemHelper.resolveAclSupportedCapabilities(ServerSession session) |
|
default java.nio.file.LinkOption[] |
SftpFileSystemAccessor.resolveFileAccessLinkOptions(ServerSession session,
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(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
|
protected java.lang.String |
AbstractSftpSubsystemHelper.resolveNewlineValue(ServerSession session) |
|
protected java.util.List<AbstractOpenSSHExtensionParser.OpenSSHExtension> |
AbstractSftpSubsystemHelper.resolveOpenSSHExtensions(ServerSession session) |
|
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
|
void |
AbstractSftpEventListenerAdapter.unblocked(ServerSession session,
java.lang.String remoteHandle,
FileHandle localHandle,
long offset,
long length,
java.lang.Throwable thrown) |
|
default void |
SftpEventListener.unblocked(ServerSession session,
java.lang.String remoteHandle,
FileHandle localHandle,
long offset,
long length,
java.lang.Throwable thrown) |
Called prior to un-blocking a file section
|
void |
AbstractSftpEventListenerAdapter.unblocking(ServerSession session,
java.lang.String remoteHandle,
FileHandle localHandle,
long offset,
long length) |
|
default void |
SftpEventListener.unblocking(ServerSession session,
java.lang.String remoteHandle,
FileHandle localHandle,
long offset,
long length) |
Called prior to un-blocking a file section
|
void |
AbstractSftpEventListenerAdapter.writing(ServerSession session,
java.lang.String remoteHandle,
FileHandle localHandle,
long offset,
byte[] data,
int dataOffset,
int dataLen) |
|
default void |
SftpEventListener.writing(ServerSession session,
java.lang.String remoteHandle,
FileHandle localHandle,
long offset,
byte[] data,
int dataOffset,
int dataLen) |
Preparing to write to file
|
void |
AbstractSftpEventListenerAdapter.written(ServerSession session,
java.lang.String remoteHandle,
FileHandle localHandle,
long offset,
byte[] data,
int dataOffset,
int dataLen,
java.lang.Throwable thrown) |
|
default void |
SftpEventListener.written(ServerSession session,
java.lang.String remoteHandle,
FileHandle localHandle,
long offset,
byte[] data,
int dataOffset,
int dataLen,
java.lang.Throwable thrown) |
Finished to writing to file
|