Interface IArtifactRequest
public interface IArtifactRequest
Represents a request to transfer an artifact from an artifact repository. When the
request is executed against a repository, it will be executed and the result
of the execution will become available.
- Since:
- 2.0
- See Also:
- Restriction:
- This interface is not intended to be implemented by clients.
-
Method Summary
Modifier and TypeMethodDescriptionReturns the key for the artifact that is being requestedReturns the result of the executed artifact request, ornull
if the request has never been executed.void
perform
(IArtifactRepository sourceRepository, IProgressMonitor monitor) Performs the artifact request, and sets the result status.
-
Method Details
-
getArtifactKey
IArtifactKey getArtifactKey()Returns the key for the artifact that is being requested- Returns:
- The requested artifact key
-
perform
Performs the artifact request, and sets the result status.- Parameters:
sourceRepository
- the repository to download the artifact frommonitor
- a progress monitor, ornull
if progress reporting is not desired
-
getResult
IStatus getResult()Returns the result of the executed artifact request, ornull
if the request has never been executed. Artifact requests are executed by invokingIArtifactRepository.getArtifacts(IArtifactRequest[], IProgressMonitor)
.- Returns:
- The result of the previous perform call, or
null
-