Class MavenArtifact
java.lang.Object
org.apache.maven.repository.legacy.MavenArtifact
- All Implemented Interfaces:
ArtifactTransferResource
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Stringprivate org.apache.maven.wagon.resource.Resourceprivate long -
Constructor Summary
ConstructorsConstructorDescriptionMavenArtifact(String repositoryUrl, org.apache.maven.wagon.resource.Resource resource) -
Method Summary
Modifier and TypeMethodDescriptionlongThe 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.longGets the timestamp when the transfer of this artifact was started.getUrl()Gets the full URL of the artifact.toString()
-
Field Details
-
repositoryUrl
-
resource
private org.apache.maven.wagon.resource.Resource resource -
transferStartTime
private long transferStartTime
-
-
Constructor Details
-
MavenArtifact
MavenArtifact(String repositoryUrl, org.apache.maven.wagon.resource.Resource resource)
-
-
Method Details
-
getRepositoryUrl
Description copied from interface:ArtifactTransferResourceThe 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.- Specified by:
getRepositoryUrlin interfaceArtifactTransferResource- Returns:
- The base URL of the repository or an empty string if unknown, never
null.
-
getName
Description copied from interface:ArtifactTransferResourceThe path of the artifact relative to the repository's base URL.- Specified by:
getNamein interfaceArtifactTransferResource- Returns:
- The path of the artifact, never
null.
-
getUrl
Description copied from interface:ArtifactTransferResourceGets the full URL of the artifact.- Specified by:
getUrlin interfaceArtifactTransferResource- Returns:
- The full URL of the artifact, never
null.
-
getContentLength
public long getContentLength()Description copied from interface:ArtifactTransferResourceThe size of the artifact in bytes.- Specified by:
getContentLengthin interfaceArtifactTransferResource- Returns:
- The of the artifact in bytes or a negative value if unknown.
-
getTransferStartTime
public long getTransferStartTime()Description copied from interface:ArtifactTransferResourceGets the timestamp when the transfer of this artifact was started.- Specified by:
getTransferStartTimein interfaceArtifactTransferResource- Returns:
- The timestamp when the transfer of this artifact was started.
-
toString
-