Class MavenArtifact

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.lang.String repositoryUrl  
      private org.apache.maven.wagon.resource.Resource resource  
      private long transferStartTime  
    • Constructor Summary

      Constructors 
      Constructor Description
      MavenArtifact​(java.lang.String repositoryUrl, org.apache.maven.wagon.resource.Resource resource)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      long getContentLength()
      The size of the artifact in bytes.
      java.lang.String getName()
      The path of the artifact relative to the repository's base URL.
      java.lang.String getRepositoryUrl()
      The base URL of the repository, e.g.
      long getTransferStartTime()
      Gets the timestamp when the transfer of this artifact was started.
      java.lang.String getUrl()
      Gets the full URL of the artifact.
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • repositoryUrl

        private java.lang.String repositoryUrl
      • resource

        private org.apache.maven.wagon.resource.Resource resource
      • transferStartTime

        private long transferStartTime
    • Constructor Detail

      • MavenArtifact

        MavenArtifact​(java.lang.String repositoryUrl,
                      org.apache.maven.wagon.resource.Resource resource)
    • Method Detail

      • getRepositoryUrl

        public java.lang.String getRepositoryUrl()
        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 interface ArtifactTransferResource
        Returns:
        The base URL of the repository or an empty string if unknown, never null.
      • getName

        public java.lang.String getName()
        Description copied from interface: ArtifactTransferResource
        The path of the artifact relative to the repository's base URL.
        Specified by:
        getName in interface ArtifactTransferResource
        Returns:
        The path of the artifact, never null.
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object