public interface ResolutionErrorPolicy
Modifier and Type | Field and Description |
---|---|
static int |
CACHE_ALL
Bit mask indicating that all resolution errors should be cached in the local repository.
|
static int |
CACHE_DISABLED
Bit mask indicating that resolution errors should not be cached in the local repository.
|
static int |
CACHE_NOT_FOUND
Bit flag indicating whether missing artifacts/metadata should be cached in the local repository.
|
static int |
CACHE_TRANSFER_ERROR
Bit flag indicating whether connectivity/transfer errors (e.g. unreachable host, bad authentication) should be
cached in the local repository.
|
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.
|
static final int CACHE_DISABLED
static final int CACHE_NOT_FOUND
static final int CACHE_TRANSFER_ERROR
static final int CACHE_ALL
int getArtifactPolicy(RepositorySystemSession session, ResolutionErrorPolicyRequest<Artifact> request)
session
- The repository session during which the policy is determined, must not be null
.request
- The policy request holding further details, must not be null
.int getMetadataPolicy(RepositorySystemSession session, ResolutionErrorPolicyRequest<Metadata> request)
session
- 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–2017 The Apache Software Foundation. All rights reserved.