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