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:
java.util.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
-
-
Constructor Summary
Constructors Constructor Description ScpCommandTransferEventListener(org.slf4j.Logger logger)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
endFileEvent(org.apache.sshd.common.session.Session session, org.apache.sshd.scp.common.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(org.apache.sshd.common.session.Session session, org.apache.sshd.scp.common.ScpTransferEventListener.FileOperation op, java.nio.file.Path file, java.util.Set<java.nio.file.attribute.PosixFilePermission> perms, java.lang.Throwable thrown)
void
handleFileEventAckInfo(org.apache.sshd.common.session.Session session, org.apache.sshd.scp.common.ScpTransferEventListener.FileOperation op, java.nio.file.Path file, long length, java.util.Set<java.nio.file.attribute.PosixFilePermission> perms, org.apache.sshd.scp.common.helpers.ScpAckInfo ackInfo)
void
startFileEvent(org.apache.sshd.common.session.Session session, org.apache.sshd.scp.common.ScpTransferEventListener.FileOperation op, java.nio.file.Path file, long length, java.util.Set<java.nio.file.attribute.PosixFilePermission> perms)
void
startFolderEvent(org.apache.sshd.common.session.Session session, org.apache.sshd.scp.common.ScpTransferEventListener.FileOperation op, java.nio.file.Path file, java.util.Set<java.nio.file.attribute.PosixFilePermission> perms)
-
Methods inherited from class org.apache.sshd.cli.server.helper.ServerEventListenerHelper
getName
-
Methods 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, warn
-
-
-
-
Method Detail
-
startFileEvent
public void startFileEvent(org.apache.sshd.common.session.Session session, org.apache.sshd.scp.common.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:
startFileEvent
in interfaceorg.apache.sshd.scp.common.ScpTransferEventListener
- Throws:
java.io.IOException
-
endFileEvent
public void endFileEvent(org.apache.sshd.common.session.Session session, org.apache.sshd.scp.common.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:
endFileEvent
in interfaceorg.apache.sshd.scp.common.ScpTransferEventListener
- Throws:
java.io.IOException
-
startFolderEvent
public void startFolderEvent(org.apache.sshd.common.session.Session session, org.apache.sshd.scp.common.ScpTransferEventListener.FileOperation op, java.nio.file.Path file, java.util.Set<java.nio.file.attribute.PosixFilePermission> perms) throws java.io.IOException
- Specified by:
startFolderEvent
in interfaceorg.apache.sshd.scp.common.ScpTransferEventListener
- Throws:
java.io.IOException
-
endFolderEvent
public void endFolderEvent(org.apache.sshd.common.session.Session session, org.apache.sshd.scp.common.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:
endFolderEvent
in interfaceorg.apache.sshd.scp.common.ScpTransferEventListener
- Throws:
java.io.IOException
-
handleFileEventAckInfo
public void handleFileEventAckInfo(org.apache.sshd.common.session.Session session, org.apache.sshd.scp.common.ScpTransferEventListener.FileOperation op, java.nio.file.Path file, long length, java.util.Set<java.nio.file.attribute.PosixFilePermission> perms, org.apache.sshd.scp.common.helpers.ScpAckInfo ackInfo) throws java.io.IOException
- Specified by:
handleFileEventAckInfo
in interfaceorg.apache.sshd.scp.common.ScpTransferEventListener
- Throws:
java.io.IOException
-
-