org.eclipse.aether.resolution.ResolutionErrorPolicypublic final class SimpleResolutionErrorPolicy extends java.lang.Object implements org.eclipse.aether.resolution.ResolutionErrorPolicy
| Constructor | 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 | Description |
|---|---|---|
int |
getArtifactPolicy(org.eclipse.aether.RepositorySystemSession session,
org.eclipse.aether.resolution.ResolutionErrorPolicyRequest<org.eclipse.aether.artifact.Artifact> request) |
|
int |
getMetadataPolicy(org.eclipse.aether.RepositorySystemSession session,
org.eclipse.aether.resolution.ResolutionErrorPolicyRequest<org.eclipse.aether.metadata.Metadata> request) |
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(org.eclipse.aether.RepositorySystemSession session, org.eclipse.aether.resolution.ResolutionErrorPolicyRequest<org.eclipse.aether.artifact.Artifact> request)
getArtifactPolicy in interface org.eclipse.aether.resolution.ResolutionErrorPolicypublic int getMetadataPolicy(org.eclipse.aether.RepositorySystemSession session, org.eclipse.aether.resolution.ResolutionErrorPolicyRequest<org.eclipse.aether.metadata.Metadata> request)
getMetadataPolicy in interface org.eclipse.aether.resolution.ResolutionErrorPolicy