Class SimpleResolutionErrorPolicy
java.lang.Object
org.eclipse.aether.util.repository.SimpleResolutionErrorPolicy
- All Implemented Interfaces:
- org.eclipse.aether.resolution.ResolutionErrorPolicy
public final class SimpleResolutionErrorPolicy
extends Object
implements org.eclipse.aether.resolution.ResolutionErrorPolicy
A resolution error policy that allows to control caching for artifacts and metadata at a global level.
- 
Field SummaryFields inherited from interface org.eclipse.aether.resolution.ResolutionErrorPolicyCACHE_ALL, CACHE_DISABLED, CACHE_NOT_FOUND, CACHE_TRANSFER_ERROR
- 
Constructor SummaryConstructorsConstructorDescriptionSimpleResolutionErrorPolicy(boolean cacheNotFound, boolean cacheTransferErrors) Creates a new error policy with the specified behavior for both artifacts and metadata.SimpleResolutionErrorPolicy(int policy) Creates a new error policy with the specified bit mask for both artifacts and metadata.SimpleResolutionErrorPolicy(int artifactPolicy, int metadataPolicy) Creates a new error policy with the specified bit masks for artifacts and metadata.
- 
Method SummaryModifier and TypeMethodDescriptionintgetArtifactPolicy(org.eclipse.aether.RepositorySystemSession session, org.eclipse.aether.resolution.ResolutionErrorPolicyRequest<org.eclipse.aether.artifact.Artifact> request) intgetMetadataPolicy(org.eclipse.aether.RepositorySystemSession session, org.eclipse.aether.resolution.ResolutionErrorPolicyRequest<org.eclipse.aether.metadata.Metadata> request) 
- 
Constructor Details- 
SimpleResolutionErrorPolicyCreates a new error policy with the specified behavior for both artifacts and metadata.- Parameters:
- cacheNotFound-- trueto enable caching of missing items,- falseto disable it.
- cacheTransferErrors-- trueto enable chaching of transfer errors,- falseto disable it.
 
- 
SimpleResolutionErrorPolicyCreates a new error policy with the specified bit mask for both artifacts and metadata.- Parameters:
- policy- The bit mask describing the policy for artifacts and metadata.
 
- 
SimpleResolutionErrorPolicyCreates a new error policy with the specified bit masks for artifacts and metadata.- Parameters:
- artifactPolicy- The bit mask describing the policy for artifacts.
- metadataPolicy- The bit mask describing the policy for metadata.
 
 
- 
- 
Method Details- 
getArtifactPolicypublic int getArtifactPolicy(org.eclipse.aether.RepositorySystemSession session, org.eclipse.aether.resolution.ResolutionErrorPolicyRequest<org.eclipse.aether.artifact.Artifact> request) - Specified by:
- getArtifactPolicyin interface- org.eclipse.aether.resolution.ResolutionErrorPolicy
 
- 
getMetadataPolicypublic int getMetadataPolicy(org.eclipse.aether.RepositorySystemSession session, org.eclipse.aether.resolution.ResolutionErrorPolicyRequest<org.eclipse.aether.metadata.Metadata> request) - Specified by:
- getMetadataPolicyin interface- org.eclipse.aether.resolution.ResolutionErrorPolicy
 
 
-