|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.sonatype.aether.repository.LocalArtifactRequest
public class LocalArtifactRequest
A query to the local repository for the existence of an artifact.
LocalRepositoryManager.find(RepositorySystemSession, LocalArtifactRequest)
Constructor Summary | |
---|---|
LocalArtifactRequest()
Creates an uninitialized query. |
|
LocalArtifactRequest(Artifact artifact,
List<RemoteRepository> repositories,
String context)
Creates a query with the specified properties. |
Method Summary | |
---|---|
Artifact |
getArtifact()
Gets the artifact to query for. |
String |
getContext()
Gets the resolution context. |
List<RemoteRepository> |
getRepositories()
Gets the remote repositories to consider as sources of the artifact. |
LocalArtifactRequest |
setArtifact(Artifact artifact)
Sets the artifact to query for. |
LocalArtifactRequest |
setContext(String context)
Sets the resolution context. |
LocalArtifactRequest |
setRepositories(List<RemoteRepository> repositories)
Sets the remote repositories to consider as sources of the artifact. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public LocalArtifactRequest()
public LocalArtifactRequest(Artifact artifact, List<RemoteRepository> repositories, String context)
artifact
- The artifact to query for, may be null
.repositories
- The remote repositories that should be considered as potential sources for the artifact, may
be null
or empty to only consider locally installed artifacts.context
- The resolution context for the artifact, may be null
.Method Detail |
---|
public Artifact getArtifact()
null
if not set.public LocalArtifactRequest setArtifact(Artifact artifact)
artifact
- The artifact, may be null
.
null
.public String getContext()
null
.public LocalArtifactRequest setContext(String context)
context
- The resolution context, may be null
.
null
.public List<RemoteRepository> getRepositories()
null
.public LocalArtifactRequest setRepositories(List<RemoteRepository> repositories)
repositories
- The remote repositories, may be null
or empty to only consider locally installed
artifacts.
null
.public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |