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(ScpTransferEventListener.FileOperation op,
java.nio.file.Path file,
long length,
java.util.Set<java.nio.file.attribute.PosixFilePermission> perms,
java.lang.Throwable thrown) |
void |
endFolderEvent(ScpTransferEventListener.FileOperation op,
java.nio.file.Path file,
java.util.Set<java.nio.file.attribute.PosixFilePermission> perms,
java.lang.Throwable thrown) |
void |
startFileEvent(ScpTransferEventListener.FileOperation op,
java.nio.file.Path file,
long length,
java.util.Set<java.nio.file.attribute.PosixFilePermission> perms) |
void |
startFolderEvent(ScpTransferEventListener.FileOperation op,
java.nio.file.Path file,
java.util.Set<java.nio.file.attribute.PosixFilePermission> perms) |
getSimplifiedLogger
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
validateListener
validateListener
protected AbstractScpTransferEventListenerAdapter()
public void startFileEvent(ScpTransferEventListener.FileOperation op, java.nio.file.Path file, long length, java.util.Set<java.nio.file.attribute.PosixFilePermission> perms) throws java.io.IOException
startFileEvent
in interface ScpTransferEventListener
op
- 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 completejava.io.IOException
- If failed to handle the eventpublic void endFileEvent(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
endFileEvent
in interface ScpTransferEventListener
op
- 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 successfuljava.io.IOException
- If failed to handle the eventpublic void startFolderEvent(ScpTransferEventListener.FileOperation op, java.nio.file.Path file, java.util.Set<java.nio.file.attribute.PosixFilePermission> perms) throws java.io.IOException
startFolderEvent
in interface ScpTransferEventListener
op
- The ScpTransferEventListener.FileOperation
file
- The local referenced folder Path
perms
- A Set
of PosixFilePermission
s to be applied
once transfer is completejava.io.IOException
- If failed to handle the eventpublic void endFolderEvent(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
endFolderEvent
in interface ScpTransferEventListener
op
- 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 successfuljava.io.IOException
- If failed to handle the event