Class StandardTransferListenerSupport

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addTransferListener​(org.apache.maven.wagon.events.TransferListener transferListener)
      Add a TransferListener to be notified
      void fireTransferCompleted​(org.apache.maven.wagon.resource.Resource resource, int requestType)
      Notify TransferListeners that the transfer was completed successfully
      void fireTransferError​(org.apache.maven.wagon.resource.Resource resource, int requestType, Exception exception)
      Notify TransferListeners that an error occurred during the transfer
      void fireTransferInitiated​(org.apache.maven.wagon.resource.Resource resource, int requestType)
      Notify TransferListeners that a transfer is being initiated
      void fireTransferProgress​(org.apache.maven.wagon.resource.Resource resource, int requestType, byte[] buffer, int length)
      Notify TransferListeners about the progress of a transfer
      void fireTransferStarted​(org.apache.maven.wagon.resource.Resource resource, int requestType)
      Notify TransferListeners that a transfer has started successfully
      boolean hasTransferListener​(org.apache.maven.wagon.events.TransferListener transferListener)
      Returns whether a TransferListener is already in the collection of TransferListeners to be notified
      void removeTransferListener​(org.apache.maven.wagon.events.TransferListener transferListener)
      Remove a TransferListener so that it is no longer notified
    • Constructor Detail

      • StandardTransferListenerSupport

        public StandardTransferListenerSupport​(org.apache.maven.wagon.Wagon wagon)
    • Method Detail

      • addTransferListener

        public void addTransferListener​(org.apache.maven.wagon.events.TransferListener transferListener)
        Description copied from interface: TransferListenerSupport
        Add a TransferListener to be notified
        Specified by:
        addTransferListener in interface TransferListenerSupport
        Parameters:
        transferListener - The TransferListener to be notified
      • removeTransferListener

        public void removeTransferListener​(org.apache.maven.wagon.events.TransferListener transferListener)
        Description copied from interface: TransferListenerSupport
        Remove a TransferListener so that it is no longer notified
        Specified by:
        removeTransferListener in interface TransferListenerSupport
        Parameters:
        transferListener - The TransferListener that should no longer be notified
      • hasTransferListener

        public boolean hasTransferListener​(org.apache.maven.wagon.events.TransferListener transferListener)
        Description copied from interface: TransferListenerSupport
        Returns whether a TransferListener is already in the collection of TransferListeners to be notified
        Specified by:
        hasTransferListener in interface TransferListenerSupport
        Parameters:
        transferListener - the TransferListener to look for
        Returns:
        true if the TransferListener is already in the collection of TransferListeners to be notified, otherwise false
      • fireTransferInitiated

        public void fireTransferInitiated​(org.apache.maven.wagon.resource.Resource resource,
                                          int requestType)
        Description copied from interface: TransferListenerSupport
        Notify TransferListeners that a transfer is being initiated
        Specified by:
        fireTransferInitiated in interface TransferListenerSupport
        Parameters:
        resource - The resource being transfered
        requestType - The type of request to be executed
        See Also:
        TransferEvent.TRANSFER_INITIATED
      • fireTransferStarted

        public void fireTransferStarted​(org.apache.maven.wagon.resource.Resource resource,
                                        int requestType)
        Description copied from interface: TransferListenerSupport
        Notify TransferListeners that a transfer has started successfully
        Specified by:
        fireTransferStarted in interface TransferListenerSupport
        Parameters:
        resource - The resource being transfered
        requestType - The type of request being executed
        See Also:
        TransferEvent.TRANSFER_STARTED
      • fireTransferProgress

        public void fireTransferProgress​(org.apache.maven.wagon.resource.Resource resource,
                                         int requestType,
                                         byte[] buffer,
                                         int length)
        Description copied from interface: TransferListenerSupport
        Notify TransferListeners about the progress of a transfer
        Specified by:
        fireTransferProgress in interface TransferListenerSupport
        Parameters:
        resource - The resource being transfered
        requestType - The type of request being executed
        buffer - The buffer of bytes being transfered
        length - The length of the data in the buffer
        See Also:
        TransferEvent.TRANSFER_PROGRESS
      • fireTransferCompleted

        public void fireTransferCompleted​(org.apache.maven.wagon.resource.Resource resource,
                                          int requestType)
        Description copied from interface: TransferListenerSupport
        Notify TransferListeners that the transfer was completed successfully
        Specified by:
        fireTransferCompleted in interface TransferListenerSupport
        Parameters:
        resource - The resource being transfered
        requestType - The type of request executed
        See Also:
        TransferEvent.TRANSFER_COMPLETED
      • fireTransferError

        public void fireTransferError​(org.apache.maven.wagon.resource.Resource resource,
                                      int requestType,
                                      Exception exception)
        Description copied from interface: TransferListenerSupport
        Notify TransferListeners that an error occurred during the transfer
        Specified by:
        fireTransferError in interface TransferListenerSupport
        Parameters:
        resource - The resource being transfered
        requestType - The type of the request being executed
        exception - The error that occurred