Package org.eclipse.aether.resolution
Class MetadataResult
java.lang.Object
org.eclipse.aether.resolution.MetadataResult
The result of a metadata resolution request.
- See Also:
- 
Constructor SummaryConstructorsConstructorDescriptionMetadataResult(MetadataRequest request) Creates a new result for the specified request.
- 
Method SummaryModifier and TypeMethodDescriptionGets the exception that occurred while resolving the metadata.Gets the resolved metadata (if any).Gets the resolution request that was made.booleanIndicates whether the requested metadata is not present in the remote repository.booleanIndicates whether the requested metadata was resolved.booleanIndicates whether the metadata was actually fetched from the remote repository or resolved from the local cache.setException(Exception exception) Records the specified exception while resolving the metadata.setMetadata(Metadata metadata) Sets the resolved metadata.setUpdated(boolean updated) Sets the updated flag for the metadata.toString()
- 
Constructor Details- 
MetadataResultCreates a new result for the specified request.- Parameters:
- request- The resolution request, must not be- null.
 
 
- 
- 
Method Details- 
getRequestGets the resolution request that was made.- Returns:
- The resolution request, never null.
 
- 
getMetadataGets the resolved metadata (if any).- Returns:
- The resolved metadata or nullif the resolution failed.
 
- 
setMetadataSets the resolved metadata.- Parameters:
- metadata- The resolved metadata, may be- nullif the resolution failed.
- Returns:
- This result for chaining, never null.
 
- 
setExceptionRecords the specified exception while resolving the metadata.- Parameters:
- exception- The exception to record, may be- null.
- Returns:
- This result for chaining, never null.
 
- 
getExceptionGets the exception that occurred while resolving the metadata.- Returns:
- The exception that occurred or nullif none.
 
- 
setUpdatedSets the updated flag for the metadata.- Parameters:
- updated-- trueif the metadata was actually fetched from the remote repository during the resolution,- falseif the metadata was resolved from a locally cached copy.
- Returns:
- This result for chaining, never null.
 
- 
isUpdatedIndicates whether the metadata was actually fetched from the remote repository or resolved from the local cache. If metadata has been locally cached during a previous resolution request and this local copy is still up-to-date according to the remote repository's update policy, no remote access is made.- Returns:
- trueif the metadata was actually fetched from the remote repository during the resolution,- falseif the metadata was resolved from a locally cached copy.
 
- 
isResolvedIndicates whether the requested metadata was resolved. Note that the metadata might have been successfully resolved (from the local cache) despitegetException()indicating a transfer error while trying to refetch the metadata from the remote repository.- Returns:
- trueif the metadata was resolved,- falseotherwise.
- See Also:
 
- 
isMissingIndicates whether the requested metadata is not present in the remote repository.- Returns:
- trueif the metadata is not present in the remote repository,- falseotherwise.
 
- 
toString
 
-