Class 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
    • 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

        log
      • Fields inherited from interface org.apache.sshd.common.NamedResource

        BY_NAME_COMPARATOR, NAME_EXTRACTOR
      • Fields inherited from interface org.apache.sshd.scp.common.ScpTransferEventListener

        EMPTY
    • 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.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
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface org.apache.sshd.scp.common.ScpTransferEventListener

        handleReceiveCommandAckInfo
    • Constructor Detail

      • ScpCommandTransferEventListener

        public ScpCommandTransferEventListener​(org.slf4j.Logger logger)
    • 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 interface org.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 interface org.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 interface org.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 interface org.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 interface org.apache.sshd.scp.common.ScpTransferEventListener
        Throws:
        java.io.IOException