Class TransportTask
- java.lang.Object
-
- org.eclipse.aether.spi.connector.transport.TransportTask
-
-
Field Summary
Fields Modifier and Type Field Description (package private) static byte[]
EMPTY
private TransportListener
listener
private java.net.URI
location
(package private) static TransportListener
NOOP
-
Constructor Summary
Constructors Constructor Description TransportTask()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TransportListener
getListener()
Gets the listener that is to be notified during the transfer.java.net.URI
getLocation()
Gets the relative location of the affected resource in the remote repository.(package private) TransportTask
setListener(TransportListener listener)
Sets the listener that is to be notified during the transfer.(package private) TransportTask
setLocation(java.net.URI location)
-
-
-
Field Detail
-
NOOP
static final TransportListener NOOP
-
EMPTY
static final byte[] EMPTY
-
location
private java.net.URI location
-
listener
private TransportListener listener
-
-
Method Detail
-
getLocation
public java.net.URI getLocation()
Gets the relative location of the affected resource in the remote repository.- Returns:
- The relative location of the resource, never
null
.
-
setLocation
TransportTask setLocation(java.net.URI location)
-
getListener
public TransportListener getListener()
Gets the listener that is to be notified during the transfer.- Returns:
- The listener to notify of progress, never
null
.
-
setListener
TransportTask setListener(TransportListener listener)
Sets the listener that is to be notified during the transfer.- Parameters:
listener
- The listener to notify of progress, may benull
.- Returns:
- This task for chaining, never
null
.
-
-