Package org.eclipse.aether.repository
Class LocalMetadataResult
java.lang.Object
org.eclipse.aether.repository.LocalMetadataResult
A result from the local repository about the existence of metadata.
- See Also:
- 
Constructor SummaryConstructorsConstructorDescriptionLocalMetadataResult(LocalMetadataRequest request) Creates a new result for the specified request.
- 
Method SummaryModifier and TypeMethodDescriptiongetFile()Gets the file to the requested metadata if the metadata is available in the local repository.Gets the request corresponding to this result.booleanisStale()This value indicates whether the metadata is stale and should be updated.Sets the file to requested metadata.setStale(boolean stale) Sets whether the metadata is stale.toString()
- 
Constructor Details- 
LocalMetadataResultCreates a new result for the specified request.- Parameters:
- request- The local metadata request, must not be- null.
 
 
- 
- 
Method Details- 
getRequestGets the request corresponding to this result.- Returns:
- The corresponding request, never null.
 
- 
getFileGets the file to the requested metadata if the metadata is available in the local repository.- Returns:
- The file to the requested metadata or null.
 
- 
setFileSets the file to requested metadata.- Parameters:
- file- The metadata file, may be- null.
- Returns:
- This result for chaining, never null.
 
- 
isStaleThis value indicates whether the metadata is stale and should be updated.- Returns:
- trueif the metadata is stale and should be updated,- falseotherwise.
 
- 
setStaleSets whether the metadata is stale.- Parameters:
- stale-- trueif the metadata is stale and should be updated,- falseotherwise.
- Returns:
- This result for chaining, never null.
 
- 
toString
 
-