Class RecordingTransportListener
java.lang.Object
org.eclipse.aether.spi.connector.transport.TransportListener
org.eclipse.aether.internal.test.util.http.RecordingTransportListener
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidgetBaos()longlongintintbooleanbooleanvoidNotifies the listener about some progress in the data transfer.voidtransportStarted(long dataOffset, long dataLength) Notifies the listener about the start of the data transfer.
-
Constructor Details
-
RecordingTransportListener
public RecordingTransportListener()
-
-
Method Details
-
transportStarted
Description copied from class:TransportListenerNotifies the listener about the start of the data transfer. This event may arise more than once if the transfer needs to be restarted (e.g. after an authentication failure).- Overrides:
transportStartedin classTransportListener- Parameters:
dataOffset- The byte offset in the resource at which the transfer starts, must not be negative.dataLength- The total number of bytes in the resource or-1if the length is unknown.- Throws:
TransferCancelledException- If the transfer should be aborted.
-
transportProgressed
Description copied from class:TransportListenerNotifies the listener about some progress in the data transfer. This event may even be fired if actually zero bytes have been transferred since the last event, for instance to enable cancellation.- Overrides:
transportProgressedin classTransportListener- Parameters:
data- The (read-only) buffer holding the bytes that have just been tranferred, must not benull.- Throws:
TransferCancelledException- If the transfer should be aborted.
-
getBaos
-
getDataOffset
-
getDataLength
-
getStartedCount
-
getProgressedCount
-
isCancelStart
-
isCancelProgress
-
cancelStart
-
cancelProgress
-