Package org.eclipse.aether.repository
Class LocalMetadataRequest
java.lang.Object
org.eclipse.aether.repository.LocalMetadataRequest
A query to the local repository for the existence of metadata.
- See Also:
- 
Constructor SummaryConstructorsConstructorDescriptionCreates an uninitialized query.LocalMetadataRequest(Metadata metadata, RemoteRepository repository, String context) Creates a query with the specified properties.
- 
Method SummaryModifier and TypeMethodDescriptionGets the resolution context.Gets the metadata to query for.Gets the remote repository to use as source of the metadata.setContext(String context) Sets the resolution context.setMetadata(Metadata metadata) Sets the metadata to query for.setRepository(RemoteRepository repository) Sets the remote repository to use as sources of the metadata.toString()
- 
Constructor Details- 
LocalMetadataRequestpublic LocalMetadataRequest()Creates an uninitialized query.
- 
LocalMetadataRequestCreates a query with the specified properties.- Parameters:
- metadata- The metadata to query for, may be- null.
- repository- The source remote repository for the metadata, may be- nullfor local metadata.
- context- The resolution context for the metadata, may be- null.
 
 
- 
- 
Method Details- 
getMetadataGets the metadata to query for.- Returns:
- The metadata or nullif not set.
 
- 
setMetadataSets the metadata to query for.- Parameters:
- metadata- The metadata, 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.
 
- 
getRepositoryGets the remote repository to use as source of the metadata.- Returns:
- The remote repositories, may be nullfor local metadata.
 
- 
setRepositorySets the remote repository to use as sources of the metadata.- Parameters:
- repository- The remote repository, may be- null.
- Returns:
- This query for chaining, may be nullfor local metadata.
 
- 
toString
 
-