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
null s |
Modifier and Type | Method and Description |
---|---|
default void |
endFileEvent(Session session,
ScpTransferEventListener.FileOperation op,
Path file,
long length,
Set<PosixFilePermission> perms,
Throwable thrown) |
default void |
endFolderEvent(Session session,
ScpTransferEventListener.FileOperation op,
Path file,
Set<PosixFilePermission> perms,
Throwable thrown) |
default void |
startFileEvent(Session session,
ScpTransferEventListener.FileOperation op,
Path file,
long length,
Set<PosixFilePermission> perms) |
default void |
startFolderEvent(Session session,
ScpTransferEventListener.FileOperation op,
Path file,
Set<PosixFilePermission> perms) |
static <L extends ScpTransferEventListener> |
validateListener(L listener) |
validateListener
static final ScpTransferEventListener EMPTY
null
sdefault void startFileEvent(Session session, ScpTransferEventListener.FileOperation op, Path file, long length, Set<PosixFilePermission> perms) throws IOException
session
- The client/server Session
through which the transfer is being executedop
- The ScpTransferEventListener.FileOperation
file
- The local referenced file Path
length
- Size (in bytes) of transferred dataperms
- A Set
of PosixFilePermission
s to be applied
once transfer is completeIOException
- If failed to handle the eventdefault void endFileEvent(Session session, ScpTransferEventListener.FileOperation op, Path file, long length, Set<PosixFilePermission> perms, Throwable thrown) throws IOException
session
- The client/server Session
through which the transfer is being executedop
- The ScpTransferEventListener.FileOperation
file
- The local referenced file Path
length
- Size (in bytes) of transferred dataperms
- A Set
of PosixFilePermission
s to be applied
once transfer is completethrown
- The result of the operation attempt - if null
then
reception was successfulIOException
- If failed to handle the eventdefault void startFolderEvent(Session session, ScpTransferEventListener.FileOperation op, Path file, Set<PosixFilePermission> perms) throws IOException
session
- The client/server Session
through which the transfer is being executedop
- The ScpTransferEventListener.FileOperation
file
- The local referenced folder Path
perms
- A Set
of PosixFilePermission
s to be applied
once transfer is completeIOException
- If failed to handle the eventdefault void endFolderEvent(Session session, ScpTransferEventListener.FileOperation op, Path file, Set<PosixFilePermission> perms, Throwable thrown) throws IOException
session
- The client/server Session
through which the transfer is being executedop
- The ScpTransferEventListener.FileOperation
file
- The local referenced file Path
perms
- A Set
of PosixFilePermission
s to be applied
once transfer is completethrown
- The result of the operation attempt - if null
then
reception was successfulIOException
- If failed to handle the eventstatic <L extends ScpTransferEventListener> L validateListener(L listener)
Copyright © 2008–2022 The Apache Software Foundation. All rights reserved.