Package org.apache.maven.repository
Interface ArtifactTransferResource
Deprecated.
Describes a resource being uploaded or downloaded by the repository system.
-
Method Summary
Modifier and TypeMethodDescriptionlong
Deprecated.The size of the artifact in bytes.getName()
Deprecated.The path of the artifact relative to the repository's base URL.Deprecated.The base URL of the repository, e.g.long
Deprecated.Gets the timestamp when the transfer of this artifact was started.getUrl()
Deprecated.Gets the full URL of the artifact.
-
Method Details
-
getRepositoryUrl
String getRepositoryUrl()Deprecated.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()Deprecated.The path of the artifact relative to the repository's base URL.- Returns:
- The path of the artifact, never
null
.
-
getUrl
String getUrl()Deprecated.Gets the full URL of the artifact.- Returns:
- The full URL of the artifact, never
null
.
-
getContentLength
long getContentLength()Deprecated.The size of the artifact in bytes.- Returns:
- The of the artifact in bytes or a negative value if unknown.
-
getTransferStartTime
long getTransferStartTime()Deprecated.Gets the timestamp when the transfer of this artifact was started.- Returns:
- The timestamp when the transfer of this artifact was started.
-