public interface ScpTransferEventListener extends SshdEventListener
| Modifier and Type | Interface and Description |
|---|---|
static class |
ScpTransferEventListener.FileOperation |
| Modifier and Type | Field and Description |
|---|---|
static ScpTransferEventListener |
EMPTY
An "empty" implementation to be used instead of
nulls |
| Modifier and Type | Method and Description |
|---|---|
default void |
endFileEvent(Session session,
ScpTransferEventListener.FileOperation op,
java.nio.file.Path file,
long length,
java.util.Set<java.nio.file.attribute.PosixFilePermission> perms,
java.lang.Throwable thrown) |
default void |
endFolderEvent(Session session,
ScpTransferEventListener.FileOperation op,
java.nio.file.Path file,
java.util.Set<java.nio.file.attribute.PosixFilePermission> perms,
java.lang.Throwable thrown) |
default void |
startFileEvent(Session session,
ScpTransferEventListener.FileOperation op,
java.nio.file.Path file,
long length,
java.util.Set<java.nio.file.attribute.PosixFilePermission> perms) |
default void |
startFolderEvent(Session session,
ScpTransferEventListener.FileOperation op,
java.nio.file.Path file,
java.util.Set<java.nio.file.attribute.PosixFilePermission> perms) |
static <L extends ScpTransferEventListener> |
validateListener(L listener) |
validateListenerstatic final ScpTransferEventListener EMPTY
nullsdefault void startFileEvent(Session session, ScpTransferEventListener.FileOperation op, java.nio.file.Path file, long length, java.util.Set<java.nio.file.attribute.PosixFilePermission> perms) throws java.io.IOException
session - The client/server Session through which the transfer is being executedop - The ScpTransferEventListener.FileOperationfile - The local referenced file Pathlength - Size (in bytes) of transferred dataperms - A Set of PosixFilePermissions to be applied once transfer is completejava.io.IOException - If failed to handle the eventdefault void endFileEvent(Session session, ScpTransferEventListener.FileOperation op, java.nio.file.Path file, long length, java.util.Set<java.nio.file.attribute.PosixFilePermission> perms, java.lang.Throwable thrown) throws java.io.IOException
session - The client/server Session through which the transfer is being executedop - The ScpTransferEventListener.FileOperationfile - The local referenced file Pathlength - Size (in bytes) of transferred dataperms - A Set of PosixFilePermissions to be applied once transfer is completethrown - The result of the operation attempt - if null then reception was successfuljava.io.IOException - If failed to handle the eventdefault void startFolderEvent(Session session, ScpTransferEventListener.FileOperation op, java.nio.file.Path file, java.util.Set<java.nio.file.attribute.PosixFilePermission> perms) throws java.io.IOException
session - The client/server Session through which the transfer is being executedop - The ScpTransferEventListener.FileOperationfile - The local referenced folder Pathperms - A Set of PosixFilePermissions to be applied once transfer is completejava.io.IOException - If failed to handle the eventdefault void endFolderEvent(Session session, ScpTransferEventListener.FileOperation op, java.nio.file.Path file, java.util.Set<java.nio.file.attribute.PosixFilePermission> perms, java.lang.Throwable thrown) throws java.io.IOException
session - The client/server Session through which the transfer is being executedop - The ScpTransferEventListener.FileOperationfile - The local referenced file Pathperms - A Set of PosixFilePermissions to be applied once transfer is completethrown - The result of the operation attempt - if null then reception was successfuljava.io.IOException - If failed to handle the eventstatic <L extends ScpTransferEventListener> L validateListener(L listener)