public final class SimpleResolutionErrorPolicy extends Object implements ResolutionErrorPolicy
CACHE_ALL, CACHE_DISABLED, CACHE_NOT_FOUND, CACHE_TRANSFER_ERROR| Constructor and Description |
|---|
SimpleResolutionErrorPolicy(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.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getArtifactPolicy(RepositorySystemSession session,
ResolutionErrorPolicyRequest<Artifact> request)
Gets the error policy for an artifact.
|
int |
getMetadataPolicy(RepositorySystemSession session,
ResolutionErrorPolicyRequest<Metadata> request)
Gets the error policy for some metadata.
|
public SimpleResolutionErrorPolicy(boolean cacheNotFound,
boolean cacheTransferErrors)
cacheNotFound - true to enable caching of missing items, false to disable it.cacheTransferErrors - true to enable chaching of transfer errors, false to disable it.public SimpleResolutionErrorPolicy(int policy)
policy - The bit mask describing the policy for artifacts and metadata.public SimpleResolutionErrorPolicy(int artifactPolicy,
int metadataPolicy)
artifactPolicy - The bit mask describing the policy for artifacts.metadataPolicy - The bit mask describing the policy for metadata.public int getArtifactPolicy(RepositorySystemSession session, ResolutionErrorPolicyRequest<Artifact> request)
ResolutionErrorPolicygetArtifactPolicy in interface ResolutionErrorPolicysession - The repository session during which the policy is determined, must not be null.request - The policy request holding further details, must not be null.public int getMetadataPolicy(RepositorySystemSession session, ResolutionErrorPolicyRequest<Metadata> request)
ResolutionErrorPolicygetMetadataPolicy in interface ResolutionErrorPolicysession - The repository session during which the policy is determined, must not be null.request - The policy request holding further details, must not be null.Copyright © 2010-2014 The Eclipse Foundation. All Rights Reserved.