Package org.eclipse.tycho.transport
Interface ArtifactDownloadProvider
public interface ArtifactDownloadProvider
An
ArtifactDownloadProvider can supply an alternative caching strategy for artifacts
fetched from P2-
Method Summary
Modifier and TypeMethodDescriptionorg.eclipse.core.runtime.IStatusdownloadArtifact(URI source, OutputStream target, org.eclipse.equinox.p2.repository.artifact.IArtifactDescriptor descriptor) Ask the provider to download the given artifact and transfer it to the given targetint
-
Method Details
-
downloadArtifact
org.eclipse.core.runtime.IStatus downloadArtifact(URI source, OutputStream target, org.eclipse.equinox.p2.repository.artifact.IArtifactDescriptor descriptor) Ask the provider to download the given artifact and transfer it to the given target- Parameters:
source- the source URI, might be a mirror URLtarget- the target where the result should be transfered todescriptor- the artifact descriptor to be queried- Returns:
- a status of type cancel if this provider can't supply the artifact, or a
DownloadStatusin case of success to supply additional information to P2, or an error if the download failed even though it should not.
-
getPriority
int getPriority()- Returns:
- the priority, higher values are considered first
-