|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.sonatype.aether.test.impl.RecordingTransferListener
public class RecordingTransferListener
Constructor Summary | |
---|---|
RecordingTransferListener()
|
|
RecordingTransferListener(TransferListener transferListener)
|
Method Summary | |
---|---|
void |
clear()
|
java.util.List<TransferEvent> |
getEvents()
|
java.util.List<TransferEvent> |
getProgressEvents()
|
void |
transferCorrupted(TransferEvent event)
Notifies the listener that a checksum validation failed. |
void |
transferFailed(TransferEvent event)
Notifies the listener about the unsuccessful termination of a transfer. |
void |
transferInitiated(TransferEvent event)
Notifies the listener about the initiation of a transfer. |
void |
transferProgressed(TransferEvent event)
Notifies the listener about some progress in the data transfer. |
void |
transferStarted(TransferEvent event)
Notifies the listener about the start of a data transfer, i.e. |
void |
transferSucceeded(TransferEvent event)
Notifies the listener about the successful completion of a transfer. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RecordingTransferListener()
public RecordingTransferListener(TransferListener transferListener)
Method Detail |
---|
public java.util.List<TransferEvent> getEvents()
public java.util.List<TransferEvent> getProgressEvents()
public void transferSucceeded(TransferEvent event)
TransferListener
transferSucceeded
in interface TransferListener
event
- The event details, must not be null
.public void transferStarted(TransferEvent event) throws TransferCancelledException
TransferListener
transferStarted
in interface TransferListener
event
- The event details, must not be null
.
TransferCancelledException
- If the transfer should be aborted.public void transferProgressed(TransferEvent event) throws TransferCancelledException
TransferListener
transferProgressed
in interface TransferListener
event
- The event details, must not be null
.
TransferCancelledException
- If the transfer should be aborted.public void transferInitiated(TransferEvent event) throws TransferCancelledException
TransferListener
transferInitiated
in interface TransferListener
event
- The event details, must not be null
.
TransferCancelledException
- If the transfer should be aborted.public void transferFailed(TransferEvent event)
TransferListener
transferFailed
in interface TransferListener
event
- The event details, must not be null
.public void transferCorrupted(TransferEvent event) throws TransferCancelledException
TransferListener
TransferEvent.getException()
will be of type
ChecksumFailureException
and can be used to query further details about the expected/actual checksums.
transferCorrupted
in interface TransferListener
event
- The event details, must not be null
.
TransferCancelledException
- If the transfer should be aborted.public void clear()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |