Class TransferListenerContainerImpl

java.lang.Object
io.github.qbast.azurewagon.listener.TransferListenerContainerImpl
All Implemented Interfaces:
TransferListenerContainer

public class TransferListenerContainerImpl extends Object implements TransferListenerContainer
  • Constructor Summary

    Constructors
    Constructor
    Description
    TransferListenerContainerImpl(org.apache.maven.wagon.Wagon wagon)
     
  • Method Summary

    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, File localFile)
    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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • TransferListenerContainerImpl

      public TransferListenerContainerImpl(org.apache.maven.wagon.Wagon wagon)
  • Method Details

    • addTransferListener

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

      public void removeTransferListener(org.apache.maven.wagon.events.TransferListener transferListener)
      Description copied from interface: TransferListenerContainer
      Remove a TransferListener so that it is no longer notified
      Specified by:
      removeTransferListener in interface TransferListenerContainer
      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: TransferListenerContainer
      Returns whether a TransferListener is already in the collection of TransferListeners to be notified
      Specified by:
      hasTransferListener in interface TransferListenerContainer
      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: TransferListenerContainer
      Notify TransferListeners that a transfer is being initiated
      Specified by:
      fireTransferInitiated in interface TransferListenerContainer
      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, File localFile)
      Description copied from interface: TransferListenerContainer
      Notify TransferListeners that a transfer has started successfully
      Specified by:
      fireTransferStarted in interface TransferListenerContainer
      Parameters:
      resource - The resource being transfered
      requestType - The type of request being executed
      localFile - local file used
      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: TransferListenerContainer
      Notify TransferListeners about the progress of a transfer
      Specified by:
      fireTransferProgress in interface TransferListenerContainer
      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: TransferListenerContainer
      Notify TransferListeners that the transfer was completed successfully
      Specified by:
      fireTransferCompleted in interface TransferListenerContainer
      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: TransferListenerContainer
      Notify TransferListeners that an error occurred during the transfer
      Specified by:
      fireTransferError in interface TransferListenerContainer
      Parameters:
      resource - The resource being transfered
      requestType - The type of the request being executed
      exception - The error that occurred