public abstract class AbstractScpTransferEventListenerAdapter extends AbstractLoggingBean implements ScpTransferEventListener
ScpTransferEventListener
for those who wish to
implement only a small number of methods. By default, all non-overridden methods
simply log at TRACE level their invocation parametersScpTransferEventListener.FileOperation
log
EMPTY
Modifier | Constructor and Description |
---|---|
protected |
AbstractScpTransferEventListenerAdapter() |
Modifier and Type | Method and Description |
---|---|
void |
endFileEvent(Session session,
ScpTransferEventListener.FileOperation op,
Path file,
long length,
Set<PosixFilePermission> perms,
Throwable thrown) |
void |
endFolderEvent(Session session,
ScpTransferEventListener.FileOperation op,
Path file,
Set<PosixFilePermission> perms,
Throwable thrown) |
void |
startFileEvent(Session session,
ScpTransferEventListener.FileOperation op,
Path file,
long length,
Set<PosixFilePermission> perms) |
void |
startFolderEvent(Session session,
ScpTransferEventListener.FileOperation op,
Path file,
Set<PosixFilePermission> perms) |
getSimplifiedLogger
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
validateListener
validateListener
protected AbstractScpTransferEventListenerAdapter()
public void startFileEvent(Session session, ScpTransferEventListener.FileOperation op, Path file, long length, Set<PosixFilePermission> perms) throws IOException
startFileEvent
in interface ScpTransferEventListener
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 eventpublic void endFileEvent(Session session, ScpTransferEventListener.FileOperation op, Path file, long length, Set<PosixFilePermission> perms, Throwable thrown) throws IOException
endFileEvent
in interface ScpTransferEventListener
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 eventpublic void startFolderEvent(Session session, ScpTransferEventListener.FileOperation op, Path file, Set<PosixFilePermission> perms) throws IOException
startFolderEvent
in interface ScpTransferEventListener
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 eventpublic void endFolderEvent(Session session, ScpTransferEventListener.FileOperation op, Path file, Set<PosixFilePermission> perms, Throwable thrown) throws IOException
endFolderEvent
in interface ScpTransferEventListener
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 eventCopyright © 2008–2022 The Apache Software Foundation. All rights reserved.