Package org.eclipse.aether.resolution
Class ArtifactRequest
java.lang.Object
org.eclipse.aether.resolution.ArtifactRequest
A request to resolve an artifact.
- See Also:
- 
Constructor SummaryConstructorsConstructorDescriptionCreates an uninitialized request.ArtifactRequest(Artifact artifact, List<RemoteRepository> repositories, String context) Creates a request with the specified properties.Creates a request from the specified dependency node.
- 
Method SummaryModifier and TypeMethodDescriptionaddRepository(RemoteRepository repository) Adds the specified repository for the resolution.Gets the artifact to resolve.Gets the dependency node (if any) for which to resolve the artifact.Gets the repositories to resolve the artifact from.Gets the context in which this request is made.getTrace()Gets the trace information that describes the higher level request/operation in which this request is issued.setArtifact(Artifact artifact) Sets the artifact to resolve.Sets the dependency node to resolve.setRepositories(List<RemoteRepository> repositories) Sets the repositories to resolve the artifact from.setRequestContext(String context) Sets the context in which this request is made.setTrace(RequestTrace trace) Sets the trace information that describes the higher level request/operation in which this request is issued.toString()
- 
Constructor Details- 
ArtifactRequestpublic ArtifactRequest()Creates an uninitialized request.
- 
ArtifactRequestCreates a request with the specified properties.- Parameters:
- 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.
 
- 
ArtifactRequestCreates a request from the specified dependency node.- Parameters:
- node- The dependency node to resolve, may be- null.
 
 
- 
- 
Method Details- 
getArtifactGets the artifact to resolve.- Returns:
- The artifact to resolve or null.
 
- 
setArtifactSets the artifact to resolve.- Parameters:
- artifact- The artifact to resolve, may be- null.
- Returns:
- This request for chaining, never null.
 
- 
getDependencyNodeGets the dependency node (if any) for which to resolve the artifact.- Returns:
- The dependency node to resolve or nullif unknown.
 
- 
setDependencyNodeSets the dependency node to resolve.- Parameters:
- node- The dependency node to resolve, may be- null.
- Returns:
- This request for chaining, never null.
 
- 
getRepositoriesGets the repositories to resolve the artifact from.- Returns:
- The repositories, never null.
 
- 
setRepositoriesSets the repositories to resolve the artifact from.- Parameters:
- repositories- The repositories, may be- null.
- Returns:
- This request for chaining, never null.
 
- 
addRepositoryAdds the specified repository for the resolution.- Parameters:
- repository- The repository to add, may be- null.
- Returns:
- This request for chaining, never null.
 
- 
getRequestContextGets the context in which this request is made.- Returns:
- The context, never null.
 
- 
setRequestContextSets the context in which this request is made.- Parameters:
- context- The context, may be- null.
- Returns:
- This request for chaining, never null.
 
- 
getTraceGets the trace information that describes the higher level request/operation in which this request is issued.- Returns:
- The trace information about the higher level operation or nullif none.
 
- 
setTraceSets the trace information that describes the higher level request/operation in which this request is issued.- Parameters:
- trace- The trace information about the higher level operation, may be- null.
- Returns:
- This request for chaining, never null.
 
- 
toString
 
-