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.FileOperationlogEMPTY| 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) |
getSimplifiedLoggerclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitvalidateListenervalidateListenerprotected 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 ScpTransferEventListenersession - 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 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 ScpTransferEventListenersession - 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 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 ScpTransferEventListenersession - 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 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 ScpTransferEventListenersession - 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 event