Package org.apache.maven.repository
Interface ArtifactTransferResource
public interface ArtifactTransferResource
Describes a resource being uploaded or downloaded by the repository system.
- Author:
- Benjamin Bentmann
-
Method Summary
Modifier and TypeMethodDescriptionlong
The size of the artifact in bytes.getName()
The path of the artifact relative to the repository's base URL.The base URL of the repository, e.g.long
Gets the timestamp when the transfer of this artifact was started.getUrl()
Gets the full URL of the artifact.
-
Method Details
-
getRepositoryUrl
String getRepositoryUrl()The base URL of the repository, e.g. "http://repo1.maven.org/maven2/". Unless the URL is unknown, it will be terminated by a trailing slash.- Returns:
- The base URL of the repository or an empty string if unknown, never
null
.
-
getName
String getName()The path of the artifact relative to the repository's base URL.- Returns:
- The path of the artifact, never
null
.
-
getUrl
String getUrl()Gets the full URL of the artifact.- Returns:
- The full URL of the artifact, never
null
.
-
getContentLength
long getContentLength()The size of the artifact in bytes.- Returns:
- The of the artifact in bytes or a negative value if unknown.
-
getTransferStartTime
long getTransferStartTime()Gets the timestamp when the transfer of this artifact was started.- Returns:
- The timestamp when the transfer of this artifact was started.
-