Class TransportTask
- java.lang.Object
-
- org.eclipse.aether.spi.connector.transport.TransportTask
-
-
Field Summary
Fields Modifier and Type Field Description (package private) static byte[]EMPTYprivate TransportListenerlistenerprivate java.net.URIlocation(package private) static TransportListenerNOOP
-
Constructor Summary
Constructors Constructor Description TransportTask()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TransportListenergetListener()Gets the listener that is to be notified during the transfer.java.net.URIgetLocation()Gets the relative location of the affected resource in the remote repository.(package private) TransportTasksetListener(TransportListener listener)Sets the listener that is to be notified during the transfer.(package private) TransportTasksetLocation(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.
-
-