public interface RepositorySystemSession
DefaultRepositorySystemSession
and its mutators to derive a custom session.Modifier and Type | Method and Description |
---|---|
ArtifactDescriptorPolicy |
getArtifactDescriptorPolicy()
Gets the policy which controls how errors related to reading artifact descriptors should be handled.
|
ArtifactTypeRegistry |
getArtifactTypeRegistry()
Gets the registry of artifact types recognized by this session, for instance when processing artifact
descriptors.
|
AuthenticationSelector |
getAuthenticationSelector()
Gets the authentication selector to use for repositories discovered in artifact descriptors.
|
RepositoryCache |
getCache()
Gets the cache the repository system may use to save data for future reuse during the session.
|
String |
getChecksumPolicy()
Gets the global checksum policy.
|
Map<String,Object> |
getConfigProperties()
Gets the configuration properties used to tweak internal aspects of the repository system (e.g.
|
SessionData |
getData()
Gets the custom data associated with this session.
|
DependencyGraphTransformer |
getDependencyGraphTransformer()
Gets the dependency graph transformer to use for building dependency graphs.
|
DependencyManager |
getDependencyManager()
Gets the dependency manager to use for building dependency graphs.
|
DependencySelector |
getDependencySelector()
Gets the dependency selector to use for building dependency graphs.
|
DependencyTraverser |
getDependencyTraverser()
Gets the dependency traverser to use for building dependency graphs.
|
FileTransformerManager |
getFileTransformerManager()
Get the file transformer manager
|
LocalRepository |
getLocalRepository()
Gets the local repository used during this session.
|
LocalRepositoryManager |
getLocalRepositoryManager()
Gets the local repository manager used during this session.
|
MirrorSelector |
getMirrorSelector()
Gets the mirror selector to use for repositories discovered in artifact descriptors.
|
ProxySelector |
getProxySelector()
Gets the proxy selector to use for repositories discovered in artifact descriptors.
|
RepositoryListener |
getRepositoryListener()
Gets the listener being notified of actions in the repository system.
|
ResolutionErrorPolicy |
getResolutionErrorPolicy()
Gets the policy which controls whether resolutions errors from remote repositories should be cached.
|
Map<String,String> |
getSystemProperties()
Gets the system properties to use, e.g.
|
TransferListener |
getTransferListener()
Gets the listener being notified of uploads/downloads by the repository system.
|
String |
getUpdatePolicy()
Gets the global update policy.
|
Map<String,String> |
getUserProperties()
Gets the user properties to use, e.g.
|
VersionFilter |
getVersionFilter()
Gets the version filter to use for building dependency graphs.
|
WorkspaceReader |
getWorkspaceReader()
Gets the workspace reader used during this session.
|
boolean |
isIgnoreArtifactDescriptorRepositories()
Indicates whether repositories declared in artifact descriptors should be ignored during transitive dependency
collection.
|
boolean |
isOffline()
Indicates whether the repository system operates in offline mode and avoids/refuses any access to remote
repositories.
|
boolean isOffline()
true
if the repository system is in offline mode, false
otherwise.boolean isIgnoreArtifactDescriptorRepositories()
true
if additional repositories from artifact descriptors are ignored, false
to merge
those with the originally specified repositories.ResolutionErrorPolicy getResolutionErrorPolicy()
null
if resolution errors should generally not be
cached.ArtifactDescriptorPolicy getArtifactDescriptorPolicy()
null
if descriptor errors should generally not be
tolerated.String getChecksumPolicy()
null
/empty if not set and the per-repository policies apply.RepositoryPolicy.CHECKSUM_POLICY_FAIL
,
RepositoryPolicy.CHECKSUM_POLICY_IGNORE
,
RepositoryPolicy.CHECKSUM_POLICY_WARN
String getUpdatePolicy()
null
/empty if not set and the per-repository policies apply.RepositoryPolicy.UPDATE_POLICY_ALWAYS
,
RepositoryPolicy.UPDATE_POLICY_DAILY
,
RepositoryPolicy.UPDATE_POLICY_NEVER
LocalRepository getLocalRepository()
LocalRepositoryManager.getRepository()
.null
.LocalRepositoryManager getLocalRepositoryManager()
null
.WorkspaceReader getWorkspaceReader()
null
if none.RepositoryListener getRepositoryListener()
null
if none.TransferListener getTransferListener()
null
if none.Map<String,String> getSystemProperties()
System.getProperties()
and environment variables.null
.Map<String,String> getUserProperties()
null
.Map<String,Object> getConfigProperties()
null
.ConfigurationProperties
MirrorSelector getMirrorSelector()
null
.RepositorySystem.newResolutionRepositories(RepositorySystemSession, java.util.List)
ProxySelector getProxySelector()
null
.RemoteRepository.getProxy()
,
RepositorySystem.newResolutionRepositories(RepositorySystemSession, java.util.List)
AuthenticationSelector getAuthenticationSelector()
null
.RemoteRepository.getAuthentication()
,
RepositorySystem.newResolutionRepositories(RepositorySystemSession, java.util.List)
ArtifactTypeRegistry getArtifactTypeRegistry()
null
.DependencyTraverser getDependencyTraverser()
null
if dependencies are
unconditionally traversed.DependencyManager getDependencyManager()
null
if dependency management is
not performed.DependencySelector getDependencySelector()
null
if dependencies are
unconditionally included.VersionFilter getVersionFilter()
null
if versions aren't filtered.DependencyGraphTransformer getDependencyGraphTransformer()
null
if none.SessionData getData()
null
.RepositoryCache getCache()
null
if none.FileTransformerManager getFileTransformerManager()
null
Copyright © 2010–2020 The Apache Software Foundation. All rights reserved.