Package org.eclipse.aether.repository
Class LocalArtifactRequest
java.lang.Object
org.eclipse.aether.repository.LocalArtifactRequest
A query to the local repository for the existence of an artifact.
- See Also:
- 
Constructor SummaryConstructorsConstructorDescriptionCreates an uninitialized query.LocalArtifactRequest(Artifact artifact, List<RemoteRepository> repositories, String context) Creates a query with the specified properties.
- 
Method SummaryModifier and TypeMethodDescriptionGets the artifact to query for.Gets the resolution context.Gets the remote repositories to consider as sources of the artifact.setArtifact(Artifact artifact) Sets the artifact to query for.setContext(String context) Sets the resolution context.setRepositories(List<RemoteRepository> repositories) Sets the remote repositories to consider as sources of the artifact.toString()
- 
Constructor Details- 
LocalArtifactRequestpublic LocalArtifactRequest()Creates an uninitialized query.
- 
LocalArtifactRequestCreates a query with the specified properties.- Parameters:
- 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- nullor empty to only consider locally installed artifacts.
- context- The resolution context for the artifact, may be- null.
 
 
- 
- 
Method Details- 
getArtifactGets the artifact to query for.- Returns:
- The artifact or nullif not set.
 
- 
setArtifactSets the artifact to query for.- Parameters:
- artifact- The artifact, may be- null.
- Returns:
- This query for chaining, never null.
 
- 
getContextGets the resolution context.- Returns:
- The resolution context, never null.
 
- 
setContextSets the resolution context.- Parameters:
- context- The resolution context, may be- null.
- Returns:
- This query for chaining, never null.
 
- 
getRepositoriesGets the remote repositories to consider as sources of the artifact.- Returns:
- The remote repositories, never null.
 
- 
setRepositoriesSets the remote repositories to consider as sources of the artifact.- Parameters:
- repositories- The remote repositories, may be- nullor empty to only consider locally installed artifacts.
- Returns:
- This query for chaining, never null.
 
- 
toString
 
-