Class ScpCommandTransferEventListener
java.lang.Object
org.apache.sshd.common.util.logging.AbstractLoggingBean
org.apache.sshd.cli.server.helper.ServerEventListenerHelper
org.apache.sshd.cli.server.helper.ScpCommandTransferEventListener
- All Implemented Interfaces:
EventListener, org.apache.sshd.common.NamedResource, org.apache.sshd.common.util.SshdEventListener, org.apache.sshd.scp.common.ScpTransferEventListener
public class ScpCommandTransferEventListener
extends ServerEventListenerHelper
implements org.apache.sshd.scp.common.ScpTransferEventListener
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.sshd.scp.common.ScpTransferEventListener
org.apache.sshd.scp.common.ScpTransferEventListener.FileOperation -
Field Summary
Fields inherited from class org.apache.sshd.common.util.logging.AbstractLoggingBean
logFields inherited from interface org.apache.sshd.common.NamedResource
BY_NAME_COMPARATOR, NAME_EXTRACTORFields inherited from interface org.apache.sshd.scp.common.ScpTransferEventListener
EMPTY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidendFileEvent(org.apache.sshd.common.session.Session session, org.apache.sshd.scp.common.ScpTransferEventListener.FileOperation op, Path file, long length, Set<PosixFilePermission> perms, Throwable thrown) voidendFolderEvent(org.apache.sshd.common.session.Session session, org.apache.sshd.scp.common.ScpTransferEventListener.FileOperation op, Path file, Set<PosixFilePermission> perms, Throwable thrown) voidhandleFileEventAckInfo(org.apache.sshd.common.session.Session session, org.apache.sshd.scp.common.ScpTransferEventListener.FileOperation op, Path file, long length, Set<PosixFilePermission> perms, org.apache.sshd.scp.common.helpers.ScpAckInfo ackInfo) voidstartFileEvent(org.apache.sshd.common.session.Session session, org.apache.sshd.scp.common.ScpTransferEventListener.FileOperation op, Path file, long length, Set<PosixFilePermission> perms) voidstartFolderEvent(org.apache.sshd.common.session.Session session, org.apache.sshd.scp.common.ScpTransferEventListener.FileOperation op, Path file, Set<PosixFilePermission> perms) Methods inherited from class ServerEventListenerHelper
getNameMethods inherited from class org.apache.sshd.common.util.logging.AbstractLoggingBean
debug, debug, debug, debug, debug, error, error, error, error, error, getSimplifiedLogger, info, info, warn, warn, warn, warn, warn, warn, warn, warnMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.sshd.scp.common.ScpTransferEventListener
handleReceiveCommandAckInfo
-
Constructor Details
-
ScpCommandTransferEventListener
public ScpCommandTransferEventListener(org.slf4j.Logger logger)
-
-
Method Details
-
startFileEvent
public void startFileEvent(org.apache.sshd.common.session.Session session, org.apache.sshd.scp.common.ScpTransferEventListener.FileOperation op, Path file, long length, Set<PosixFilePermission> perms) throws IOException - Specified by:
startFileEventin interfaceorg.apache.sshd.scp.common.ScpTransferEventListener- Throws:
IOException
-
endFileEvent
public void endFileEvent(org.apache.sshd.common.session.Session session, org.apache.sshd.scp.common.ScpTransferEventListener.FileOperation op, Path file, long length, Set<PosixFilePermission> perms, Throwable thrown) throws IOException - Specified by:
endFileEventin interfaceorg.apache.sshd.scp.common.ScpTransferEventListener- Throws:
IOException
-
startFolderEvent
public void startFolderEvent(org.apache.sshd.common.session.Session session, org.apache.sshd.scp.common.ScpTransferEventListener.FileOperation op, Path file, Set<PosixFilePermission> perms) throws IOException - Specified by:
startFolderEventin interfaceorg.apache.sshd.scp.common.ScpTransferEventListener- Throws:
IOException
-
endFolderEvent
public void endFolderEvent(org.apache.sshd.common.session.Session session, org.apache.sshd.scp.common.ScpTransferEventListener.FileOperation op, Path file, Set<PosixFilePermission> perms, Throwable thrown) throws IOException - Specified by:
endFolderEventin interfaceorg.apache.sshd.scp.common.ScpTransferEventListener- Throws:
IOException
-
handleFileEventAckInfo
public void handleFileEventAckInfo(org.apache.sshd.common.session.Session session, org.apache.sshd.scp.common.ScpTransferEventListener.FileOperation op, Path file, long length, Set<PosixFilePermission> perms, org.apache.sshd.scp.common.helpers.ScpAckInfo ackInfo) throws IOException - Specified by:
handleFileEventAckInfoin interfaceorg.apache.sshd.scp.common.ScpTransferEventListener- Throws:
IOException
-