public class DownloadableArtifact
extends java.lang.Object
Constructor and Description |
---|
DownloadableArtifact(java.lang.String version,
int priority,
java.net.URL repositoryURL,
java.lang.String path,
boolean localSnapshotBuild,
java.lang.Boolean checkCertificate)
Creates a new downloadable artifact.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
java.net.URL |
getArtifactURL()
Getter.
|
java.io.InputStream |
getInputStream()
Return the input stream to artifact.
|
int |
getPriority()
Getter.
|
Version |
getVersion()
Getter.
|
int |
hashCode() |
boolean |
isLocalSnapshotBuild()
Getter.
|
java.lang.String |
toString() |
public DownloadableArtifact(java.lang.String version, int priority, java.net.URL repositoryURL, java.lang.String path, boolean localSnapshotBuild, java.lang.Boolean checkCertificate) throws java.io.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 nulljava.io.IOException
- re-thrownNullArgumentException
- if any of the parameters is null or version is emptypublic java.io.InputStream getInputStream() throws java.io.IOException
java.io.IOException
- re-thrownURLUtils.prepareInputStream(java.net.URL, boolean)
public Version getVersion()
public int getPriority()
public java.net.URL getArtifactURL()
public boolean isLocalSnapshotBuild()
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2011-2014 Red Hat. All Rights Reserved.