|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.sonatype.aether.resolution.ArtifactRequest
public class ArtifactRequest
A request to resolve an artifact.
RepositorySystem.resolveArtifacts(RepositorySystemSession, java.util.Collection)
,
Artifact.getFile()
Constructor Summary | |
---|---|
ArtifactRequest()
Creates an unitialized request. |
|
ArtifactRequest(Artifact artifact,
List<RemoteRepository> repositories,
String context)
Creates a request with the specified properties. |
|
ArtifactRequest(DependencyNode node)
Creates a request from the specified dependency node. |
Method Summary | |
---|---|
ArtifactRequest |
addRepository(RemoteRepository repository)
Adds the specified repository for the resolution. |
Artifact |
getArtifact()
Gets the artifact to resolve. |
DependencyNode |
getDependencyNode()
Gets the dependency node (if any) for which to resolve the artifact. |
List<RemoteRepository> |
getRepositories()
Gets the repositories to resolve the version range from. |
String |
getRequestContext()
Gets the context in which this request is made. |
RequestTrace |
getTrace()
Gets the trace information that describes the higher level request/operation in which this request is issued. |
ArtifactRequest |
setArtifact(Artifact artifact)
Sets the artifact to resolve. |
ArtifactRequest |
setDependencyNode(DependencyNode node)
Sets the dependency node to resolve. |
ArtifactRequest |
setRepositories(List<RemoteRepository> repositories)
Sets the repositories to resolve the artifact from. |
ArtifactRequest |
setRequestContext(String context)
Sets the context in which this request is made. |
ArtifactRequest |
setTrace(RequestTrace trace)
Sets the trace information that describes the higher level request/operation in which this request is issued. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ArtifactRequest()
public ArtifactRequest(Artifact artifact, List<RemoteRepository> repositories, String context)
artifact
- The artifact to resolve, may be null
.repositories
- The repositories to resolve the artifact from, may be null
.context
- The context in which this request is made, may be null
.public ArtifactRequest(DependencyNode node)
node
- The dependency node to resolve, may be null
.Method Detail |
---|
public Artifact getArtifact()
null
.public ArtifactRequest setArtifact(Artifact artifact)
artifact
- The artifact to resolve, may be null
.
null
.public DependencyNode getDependencyNode()
null
if unknown.public ArtifactRequest setDependencyNode(DependencyNode node)
node
- The dependency node to resolve, may be null
.
null
.public List<RemoteRepository> getRepositories()
null
.public ArtifactRequest setRepositories(List<RemoteRepository> repositories)
repositories
- The repositories, may be null
.
null
.public ArtifactRequest addRepository(RemoteRepository repository)
repository
- The repository to add, may be null
.
null
.public String getRequestContext()
null
.public ArtifactRequest setRequestContext(String context)
context
- The context, may be null
.
null
.public RequestTrace getTrace()
null
if none.public ArtifactRequest setTrace(RequestTrace trace)
trace
- The trace information about the higher level operation, may be null
.
null
.public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |