public class DownloadableArtifact extends Object
Constructor and Description |
---|
DownloadableArtifact(String version,
int priority,
URL repositoryURL,
String path,
boolean localSnapshotBuild,
Boolean checkCertificate)
Creates a new downloadable artifact.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
URL |
getArtifactURL()
Getter.
|
InputStream |
getInputStream()
Return the input stream to artifact.
|
int |
getPriority()
Getter.
|
Version |
getVersion()
Getter.
|
int |
hashCode() |
boolean |
isLocalSnapshotBuild()
Getter.
|
String |
toString() |
public DownloadableArtifact(String version, int priority, URL repositoryURL, String path, boolean localSnapshotBuild, Boolean checkCertificate) throws IOException
version
- artifact version. Cannot be null or emptypriority
- priorityrepositoryURL
- url to reporsitory. Cannot be nullpath
- a path to the artifact jar file. Cannot be nulllocalSnapshotBuild
- if the artifact is a local built snapshotcheckCertificate
- if the certificate should be checked on an SSL connection. Cannot be nullIOException
- re-thrownio.fabric8.common.util.NullArgumentException
- if any of the parameters is null or version is emptypublic InputStream getInputStream() throws IOException
IOException
- re-thrownURLUtils.prepareInputStream(java.net.URL, boolean)
public Version getVersion()
public int getPriority()
public URL getArtifactURL()
public boolean isLocalSnapshotBuild()
Copyright © 2011–2014 Red Hat. All rights reserved.