Package org.eclipse.aether.spi.connector
Class Transfer
- java.lang.Object
-
- org.eclipse.aether.spi.connector.Transfer
-
- Direct Known Subclasses:
ArtifactTransfer,MetadataTransfer
public abstract class Transfer extends java.lang.ObjectAn artifact/metadata transfer.
-
-
Field Summary
Fields Modifier and Type Field Description private TransferListenerlistenerprivate RequestTracetrace
-
Constructor Summary
Constructors Constructor Description Transfer()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract java.lang.ExceptiongetException()Gets the exception that occurred during the transfer (if any).TransferListenergetListener()Gets the listener that is to be notified during the transfer.RequestTracegetTrace()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 Detail
-
listener
private TransferListener listener
-
trace
private RequestTrace trace
-
-
Method Detail
-
getException
public abstract java.lang.Exception getException()
Gets the exception that occurred during the transfer (if any).- Returns:
- The exception or
nullif the transfer was successful.
-
getListener
public TransferListener getListener()
Gets the listener that is to be notified during the transfer.- Returns:
- The transfer listener or
nullif none.
-
setListener
Transfer setListener(TransferListener listener)
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
public RequestTrace 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
Transfer setTrace(RequestTrace trace)
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.
-
-