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,
java.nio.file.Path file,
long length,
java.util.Set<java.nio.file.attribute.PosixFilePermission> perms,
java.lang.Throwable thrown) |
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) |
void |
startFileEvent(Session session,
ScpTransferEventListener.FileOperation op,
java.nio.file.Path file,
long length,
java.util.Set<java.nio.file.attribute.PosixFilePermission> perms) |
void |
startFolderEvent(Session session,
ScpTransferEventListener.FileOperation op,
java.nio.file.Path file,
java.util.Set<java.nio.file.attribute.PosixFilePermission> perms) |
debug, debug, debug, debug, debug, error, error, error, error, error, getSimplifiedLogger, info, info, warn, warn, warn, warn, warn, warn, warn, warn
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
handleFileEventAckInfo, validateListener
validateListener
protected AbstractScpTransferEventListenerAdapter()
public 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
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 completejava.io.IOException
- If failed to handle the eventpublic 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
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 successfuljava.io.IOException
- If failed to handle the eventpublic 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
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 completejava.io.IOException
- If failed to handle the eventpublic 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
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 successfuljava.io.IOException
- If failed to handle the event