public final class LocalArtifactRequest extends Object
| Constructor and Description | 
|---|
LocalArtifactRequest()
Creates an uninitialized query. 
 | 
LocalArtifactRequest(Artifact artifact,
                    List<RemoteRepository> repositories,
                    String context)
Creates a query with the specified properties. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
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()  | 
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.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.Copyright © 2010–2021 The Apache Software Foundation. All rights reserved.