Class RecordingTransportListener
java.lang.Object
org.eclipse.aether.spi.connector.transport.TransportListener
org.eclipse.aether.internal.test.util.http.RecordingTransportListener
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
void
getBaos()
long
long
int
int
boolean
boolean
void
Notifies the listener about some progress in the data transfer.void
transportStarted
(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:TransportListener
Notifies 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:
transportStarted
in 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-1
if the length is unknown.- Throws:
TransferCancelledException
- If the transfer should be aborted.
-
transportProgressed
Description copied from class:TransportListener
Notifies 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:
transportProgressed
in 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
-