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 ExceptionGets 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) TransfersetListener(TransferListener listener) Sets the listener that is to be notified during the transfer.(package private) TransfersetTrace(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
nullif the transfer was successful.
-
getListener
Gets the listener that is to be notified during the transfer.- Returns:
- The transfer listener or
nullif none.
-
setListener
Sets the listener that is to be notified during the transfer.- Parameters:
listener- The transfer listener to notify, may benullif 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
nullif 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.
-