Class TransferListenerContainerImpl
java.lang.Object
io.github.qbast.azurewagon.listener.TransferListenerContainerImpl
- All Implemented Interfaces:
TransferListenerContainer
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddTransferListener(org.apache.maven.wagon.events.TransferListener transferListener) Add aTransferListenerto be notifiedvoidfireTransferCompleted(org.apache.maven.wagon.resource.Resource resource, int requestType) NotifyTransferListeners that the transfer was completed successfullyvoidfireTransferError(org.apache.maven.wagon.resource.Resource resource, int requestType, Exception exception) NotifyTransferListeners that an error occurred during the transfervoidfireTransferInitiated(org.apache.maven.wagon.resource.Resource resource, int requestType) NotifyTransferListeners that a transfer is being initiatedvoidfireTransferProgress(org.apache.maven.wagon.resource.Resource resource, int requestType, byte[] buffer, int length) NotifyTransferListeners about the progress of a transfervoidfireTransferStarted(org.apache.maven.wagon.resource.Resource resource, int requestType, File localFile) NotifyTransferListeners that a transfer has started successfullybooleanhasTransferListener(org.apache.maven.wagon.events.TransferListener transferListener) Returns whether aTransferListeneris already in the collection ofTransferListeners to be notifiedvoidremoveTransferListener(org.apache.maven.wagon.events.TransferListener transferListener) Remove aTransferListenerso that it is no longer notified
-
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:TransferListenerContainerAdd aTransferListenerto be notified- Specified by:
addTransferListenerin interfaceTransferListenerContainer- Parameters:
transferListener- TheTransferListenerto be notified
-
removeTransferListener
public void removeTransferListener(org.apache.maven.wagon.events.TransferListener transferListener) Description copied from interface:TransferListenerContainerRemove aTransferListenerso that it is no longer notified- Specified by:
removeTransferListenerin interfaceTransferListenerContainer- Parameters:
transferListener- TheTransferListenerthat should no longer be notified
-
hasTransferListener
public boolean hasTransferListener(org.apache.maven.wagon.events.TransferListener transferListener) Description copied from interface:TransferListenerContainerReturns whether aTransferListeneris already in the collection ofTransferListeners to be notified- Specified by:
hasTransferListenerin interfaceTransferListenerContainer- Parameters:
transferListener- theTransferListenerto look for- Returns:
trueif theTransferListeneris already in the collection ofTransferListeners to be notified, otherwisefalse
-
fireTransferInitiated
public void fireTransferInitiated(org.apache.maven.wagon.resource.Resource resource, int requestType) Description copied from interface:TransferListenerContainerNotifyTransferListeners that a transfer is being initiated- Specified by:
fireTransferInitiatedin interfaceTransferListenerContainer- Parameters:
resource- The resource being transferedrequestType- 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:TransferListenerContainerNotifyTransferListeners that a transfer has started successfully- Specified by:
fireTransferStartedin interfaceTransferListenerContainer- Parameters:
resource- The resource being transferedrequestType- The type of request being executedlocalFile- 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:TransferListenerContainerNotifyTransferListeners about the progress of a transfer- Specified by:
fireTransferProgressin interfaceTransferListenerContainer- Parameters:
resource- The resource being transferedrequestType- The type of request being executedbuffer- The buffer of bytes being transferedlength- 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:TransferListenerContainerNotifyTransferListeners that the transfer was completed successfully- Specified by:
fireTransferCompletedin interfaceTransferListenerContainer- Parameters:
resource- The resource being transferedrequestType- 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:TransferListenerContainerNotifyTransferListeners that an error occurred during the transfer- Specified by:
fireTransferErrorin interfaceTransferListenerContainer- Parameters:
resource- The resource being transferedrequestType- The type of the request being executedexception- The error that occurred
-