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.Object
An artifact/metadata transfer.
-
-
Field Summary
Fields Modifier and Type Field Description private TransferListener
listener
private RequestTrace
trace
-
Constructor Summary
Constructors Constructor Description Transfer()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract java.lang.Exception
getException()
Gets the exception that occurred during the transfer (if any).TransferListener
getListener()
Gets the listener that is to be notified during the transfer.RequestTrace
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 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
null
if the transfer was successful.
-
getListener
public TransferListener getListener()
Gets the listener that is to be notified during the transfer.- Returns:
- The transfer listener or
null
if 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 benull
if 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
null
if 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
.
-
-