Class Transfer

java.lang.Object
org.eclipse.aether.spi.connector.Transfer
Direct Known Subclasses:
ArtifactTransfer, MetadataTransfer

public abstract class Transfer extends Object
An artifact/metadata transfer.
  • Field Details

  • Constructor Details

    • Transfer

      Transfer()
  • Method Details

    • getException

      public abstract 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 be null 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 be null.
      Returns:
      This transfer for chaining, never null.