Package org.apache.sshd.common.scp
Class AbstractScpTransferEventListenerAdapter
- java.lang.Object
-
- org.apache.sshd.common.util.logging.AbstractLoggingBean
-
- org.apache.sshd.common.scp.AbstractScpTransferEventListenerAdapter
-
- All Implemented Interfaces:
java.util.EventListener,ScpTransferEventListener,SshdEventListener
public abstract class AbstractScpTransferEventListenerAdapter extends AbstractLoggingBean implements ScpTransferEventListener
A no-op implementation ofScpTransferEventListenerfor those who wish to implement only a small number of methods. By default, all non-overridden methods simply log at TRACE level their invocation parameters
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.apache.sshd.common.scp.ScpTransferEventListener
ScpTransferEventListener.FileOperation
-
-
Field Summary
-
Fields inherited from class org.apache.sshd.common.util.logging.AbstractLoggingBean
log
-
Fields inherited from interface org.apache.sshd.common.scp.ScpTransferEventListener
EMPTY
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractScpTransferEventListenerAdapter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidendFileEvent(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)voidendFolderEvent(Session session, ScpTransferEventListener.FileOperation op, java.nio.file.Path file, java.util.Set<java.nio.file.attribute.PosixFilePermission> perms, java.lang.Throwable thrown)voidstartFileEvent(Session session, ScpTransferEventListener.FileOperation op, java.nio.file.Path file, long length, java.util.Set<java.nio.file.attribute.PosixFilePermission> perms)voidstartFolderEvent(Session session, ScpTransferEventListener.FileOperation op, java.nio.file.Path file, java.util.Set<java.nio.file.attribute.PosixFilePermission> perms)-
Methods inherited from class org.apache.sshd.common.util.logging.AbstractLoggingBean
getSimplifiedLogger
-
-
-
-
Method Detail
-
startFileEvent
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
- Specified by:
startFileEventin interfaceScpTransferEventListener- Parameters:
session- The client/serverSessionthrough which the transfer is being executedop- TheScpTransferEventListener.FileOperationfile- The local referenced filePathlength- Size (in bytes) of transferred dataperms- ASetofPosixFilePermissions to be applied once transfer is complete- Throws:
java.io.IOException- If failed to handle the event
-
endFileEvent
public 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
- Specified by:
endFileEventin interfaceScpTransferEventListener- Parameters:
session- The client/serverSessionthrough which the transfer is being executedop- TheScpTransferEventListener.FileOperationfile- The local referenced filePathlength- Size (in bytes) of transferred dataperms- ASetofPosixFilePermissions to be applied once transfer is completethrown- The result of the operation attempt - ifnullthen reception was successful- Throws:
java.io.IOException- If failed to handle the event
-
startFolderEvent
public 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
- Specified by:
startFolderEventin interfaceScpTransferEventListener- Parameters:
session- The client/serverSessionthrough which the transfer is being executedop- TheScpTransferEventListener.FileOperationfile- The local referenced folderPathperms- ASetofPosixFilePermissions to be applied once transfer is complete- Throws:
java.io.IOException- If failed to handle the event
-
endFolderEvent
public 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
- Specified by:
endFolderEventin interfaceScpTransferEventListener- Parameters:
session- The client/serverSessionthrough which the transfer is being executedop- TheScpTransferEventListener.FileOperationfile- The local referenced filePathperms- ASetofPosixFilePermissions to be applied once transfer is completethrown- The result of the operation attempt - ifnullthen reception was successful- Throws:
java.io.IOException- If failed to handle the event
-
-