Package org.eclipse.aether.spi.connector
Class Transfer
java.lang.Object
org.eclipse.aether.spi.connector.Transfer
- Direct Known Subclasses:
ArtifactTransfer
,MetadataTransfer
An artifact/metadata transfer.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract Exception
Gets the exception that occurred during the transfer (if any).Gets the listener that is to be notified during the transfer.getTrace()
Gets the trace information that describes the higher level request/operation in which this transfer is issued.(package private) Transfer
setListener
(TransferListener listener) Sets the listener that is to be notified during the transfer.(package private) Transfer
setTrace
(RequestTrace trace) Sets the trace information that describes the higher level request/operation in which this transfer is issued.
-
Field Details
-
listener
-
trace
-
-
Constructor Details
-
Transfer
Transfer()
-
-
Method Details
-
getException
Gets the exception that occurred during the transfer (if any).- Returns:
- The exception or
null
if the transfer was successful.
-
getListener
Gets the listener that is to be notified during the transfer.- Returns:
- The transfer listener or
null
if none.
-
setListener
Sets the listener that is to be notified during the transfer.- Parameters:
listener
- The transfer listener to notify, may benull
if none.- Returns:
- This transfer for chaining, never
null
.
-
getTrace
Gets the trace information that describes the higher level request/operation in which this transfer is issued.- Returns:
- The trace information about the higher level operation or
null
if none.
-
setTrace
Sets the trace information that describes the higher level request/operation in which this transfer is issued.- Parameters:
trace
- The trace information about the higher level operation, may benull
.- Returns:
- This transfer for chaining, never
null
.
-