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
 long getContentLength()
          The size of the artifact in bytes.
 String getName()
          The path of the artifact relative to the repository's base URL.
 String getRepositoryUrl()
          The base URL of the repository, e.g.
 long getTransferStartTime()
          Gets the timestamp when the transfer of this artifact was started.
 String getUrl()
          Gets the full URL of the artifact.
 

Method Detail

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.


Copyright © 2001-2012 The Apache Software Foundation. All Rights Reserved.