Class AbstractScpTransferEventListenerAdapter

    • Constructor Detail

      • AbstractScpTransferEventListenerAdapter

        protected AbstractScpTransferEventListenerAdapter()
    • 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:
        startFileEvent in interface ScpTransferEventListener
        Parameters:
        session - The client/server Session through which the transfer is being executed
        op - The ScpTransferEventListener.FileOperation
        file - The local referenced file Path
        length - Size (in bytes) of transferred data
        perms - A Set of PosixFilePermissions 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:
        endFileEvent in interface ScpTransferEventListener
        Parameters:
        session - The client/server Session through which the transfer is being executed
        op - The ScpTransferEventListener.FileOperation
        file - The local referenced file Path
        length - Size (in bytes) of transferred data
        perms - A Set of PosixFilePermissions to be applied once transfer is complete
        thrown - The result of the operation attempt - if null then reception was successful
        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:
        endFolderEvent in interface ScpTransferEventListener
        Parameters:
        session - The client/server Session through which the transfer is being executed
        op - The ScpTransferEventListener.FileOperation
        file - The local referenced file Path
        perms - A Set of PosixFilePermissions to be applied once transfer is complete
        thrown - The result of the operation attempt - if null then reception was successful
        Throws:
        java.io.IOException - If failed to handle the event