Class StandardTransferListenerSupport
- java.lang.Object
-
- net.integrio.maven.aws.data.transfer.StandardTransferListenerSupport
-
- All Implemented Interfaces:
TransferListenerSupport
public final class StandardTransferListenerSupport extends Object implements TransferListenerSupport
-
-
Constructor Summary
Constructors Constructor Description StandardTransferListenerSupport(org.apache.maven.wagon.Wagon wagon)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddTransferListener(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)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
-
-
-
Method Detail
-
addTransferListener
public void addTransferListener(org.apache.maven.wagon.events.TransferListener transferListener)
Description copied from interface:TransferListenerSupportAdd aTransferListenerto be notified- Specified by:
addTransferListenerin interfaceTransferListenerSupport- Parameters:
transferListener- TheTransferListenerto be notified
-
removeTransferListener
public void removeTransferListener(org.apache.maven.wagon.events.TransferListener transferListener)
Description copied from interface:TransferListenerSupportRemove aTransferListenerso that it is no longer notified- Specified by:
removeTransferListenerin interfaceTransferListenerSupport- Parameters:
transferListener- TheTransferListenerthat should no longer be notified
-
hasTransferListener
public boolean hasTransferListener(org.apache.maven.wagon.events.TransferListener transferListener)
Description copied from interface:TransferListenerSupportReturns whether aTransferListeneris already in the collection ofTransferListeners to be notified- Specified by:
hasTransferListenerin interfaceTransferListenerSupport- 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:TransferListenerSupportNotifyTransferListeners that a transfer is being initiated- Specified by:
fireTransferInitiatedin interfaceTransferListenerSupport- 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)Description copied from interface:TransferListenerSupportNotifyTransferListeners that a transfer has started successfully- Specified by:
fireTransferStartedin interfaceTransferListenerSupport- Parameters:
resource- The resource being transferedrequestType- 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:TransferListenerSupportNotifyTransferListeners about the progress of a transfer- Specified by:
fireTransferProgressin interfaceTransferListenerSupport- 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:TransferListenerSupportNotifyTransferListeners that the transfer was completed successfully- Specified by:
fireTransferCompletedin interfaceTransferListenerSupport- 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:TransferListenerSupportNotifyTransferListeners that an error occurred during the transfer- Specified by:
fireTransferErrorin interfaceTransferListenerSupport- Parameters:
resource- The resource being transferedrequestType- The type of the request being executedexception- The error that occurred
-
-