|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.sonatype.aether.resolution.ArtifactResult
public class ArtifactResult
The result of an artifact resolution request.
RepositorySystem.resolveArtifacts(RepositorySystemSession, java.util.Collection)
,
Artifact.getFile()
Constructor Summary | |
---|---|
ArtifactResult(ArtifactRequest request)
Creates a new result for the specified request. |
Method Summary | |
---|---|
ArtifactResult |
addException(java.lang.Exception exception)
Records the specified exception while resolving the artifact. |
Artifact |
getArtifact()
Gets the resolved artifact (if any). |
java.util.List<java.lang.Exception> |
getExceptions()
Gets the exceptions that occurred while resolving the artifact. |
ArtifactRepository |
getRepository()
Gets the repository from which the artifact was eventually resolved. |
ArtifactRequest |
getRequest()
Gets the resolution request that was made. |
boolean |
isMissing()
Indicates whether the requested artifact is not present in any of the specified repositories. |
boolean |
isResolved()
Indicates whether the requested artifact was resolved. |
ArtifactResult |
setArtifact(Artifact artifact)
Sets the resolved artifact. |
ArtifactResult |
setRepository(ArtifactRepository repository)
Sets the repository from which the artifact was resolved. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ArtifactResult(ArtifactRequest request)
request
- The resolution request, must not be null
.Method Detail |
---|
public ArtifactRequest getRequest()
null
.public Artifact getArtifact()
null
if the resolution failed.public ArtifactResult setArtifact(Artifact artifact)
artifact
- The resolved artifact, may be null
if the resolution failed.
null
.public java.util.List<java.lang.Exception> getExceptions()
null
.public ArtifactResult addException(java.lang.Exception exception)
exception
- The exception to record, may be null
.
null
.public ArtifactRepository getRepository()
null
if unknown.public ArtifactResult setRepository(ArtifactRepository repository)
repository
- The repository from which the artifact was resolved, may be null
.
null
.public boolean isResolved()
getExceptions()
indicating transfer errors while trying to fetch the artifact from some
of the specified remote repositories.
true
if the artifact was resolved, false
otherwise.Artifact.getFile()
public boolean isMissing()
true
if the artifact is not present in any repository, false
otherwise.public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |