public abstract class AbstractForwardingRepositorySystemSession extends Object implements RepositorySystemSession
getSession().| Modifier | Constructor and Description |
|---|---|
protected |
AbstractForwardingRepositorySystemSession()
Creates a new forwarding 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.
|
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.
|
protected abstract RepositorySystemSession |
getSession()
Gets the repository system session to which this instance forwards calls.
|
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.
|
protected AbstractForwardingRepositorySystemSession()
protected abstract RepositorySystemSession getSession()
null.public boolean isOffline()
RepositorySystemSessionisOffline in interface RepositorySystemSessiontrue if the repository system is in offline mode, false otherwise.public boolean isIgnoreArtifactDescriptorRepositories()
RepositorySystemSessionisIgnoreArtifactDescriptorRepositories in interface RepositorySystemSessiontrue if additional repositories from artifact descriptors are ignored, false to merge
those with the originally specified repositories.public ResolutionErrorPolicy getResolutionErrorPolicy()
RepositorySystemSessiongetResolutionErrorPolicy in interface RepositorySystemSessionnull if resolution errors should generally not be
cached.public ArtifactDescriptorPolicy getArtifactDescriptorPolicy()
RepositorySystemSessiongetArtifactDescriptorPolicy in interface RepositorySystemSessionnull if descriptor errors should generally not be
tolerated.public String getChecksumPolicy()
RepositorySystemSessiongetChecksumPolicy in interface RepositorySystemSessionnull/empty if not set and the per-repository policies apply.RepositoryPolicy.CHECKSUM_POLICY_FAIL,
RepositoryPolicy.CHECKSUM_POLICY_IGNORE,
RepositoryPolicy.CHECKSUM_POLICY_WARNpublic String getUpdatePolicy()
RepositorySystemSessiongetUpdatePolicy in interface RepositorySystemSessionnull/empty if not set and the per-repository policies apply.RepositoryPolicy.UPDATE_POLICY_ALWAYS,
RepositoryPolicy.UPDATE_POLICY_DAILY,
RepositoryPolicy.UPDATE_POLICY_NEVERpublic LocalRepository getLocalRepository()
RepositorySystemSessionLocalRepositoryManager.getRepository().getLocalRepository in interface RepositorySystemSessionnull.public LocalRepositoryManager getLocalRepositoryManager()
RepositorySystemSessiongetLocalRepositoryManager in interface RepositorySystemSessionnull.public WorkspaceReader getWorkspaceReader()
RepositorySystemSessiongetWorkspaceReader in interface RepositorySystemSessionnull if none.public RepositoryListener getRepositoryListener()
RepositorySystemSessiongetRepositoryListener in interface RepositorySystemSessionnull if none.public TransferListener getTransferListener()
RepositorySystemSessiongetTransferListener in interface RepositorySystemSessionnull if none.public Map<String,String> getSystemProperties()
RepositorySystemSessionSystem.getProperties() and environment variables.getSystemProperties in interface RepositorySystemSessionnull.public Map<String,String> getUserProperties()
RepositorySystemSessiongetUserProperties in interface RepositorySystemSessionnull.public Map<String,Object> getConfigProperties()
RepositorySystemSessiongetConfigProperties in interface RepositorySystemSessionnull.ConfigurationPropertiespublic MirrorSelector getMirrorSelector()
RepositorySystemSessiongetMirrorSelector in interface RepositorySystemSessionnull.RepositorySystem.newResolutionRepositories(RepositorySystemSession, java.util.List)public ProxySelector getProxySelector()
RepositorySystemSessiongetProxySelector in interface RepositorySystemSessionnull.RemoteRepository.getProxy(),
RepositorySystem.newResolutionRepositories(RepositorySystemSession, java.util.List)public AuthenticationSelector getAuthenticationSelector()
RepositorySystemSessiongetAuthenticationSelector in interface RepositorySystemSessionnull.RemoteRepository.getAuthentication(),
RepositorySystem.newResolutionRepositories(RepositorySystemSession, java.util.List)public ArtifactTypeRegistry getArtifactTypeRegistry()
RepositorySystemSessiongetArtifactTypeRegistry in interface RepositorySystemSessionnull.public DependencyTraverser getDependencyTraverser()
RepositorySystemSessiongetDependencyTraverser in interface RepositorySystemSessionnull if dependencies are
unconditionally traversed.public DependencyManager getDependencyManager()
RepositorySystemSessiongetDependencyManager in interface RepositorySystemSessionnull if dependency management is
not performed.public DependencySelector getDependencySelector()
RepositorySystemSessiongetDependencySelector in interface RepositorySystemSessionnull if dependencies are
unconditionally included.public VersionFilter getVersionFilter()
RepositorySystemSessiongetVersionFilter in interface RepositorySystemSessionnull if versions aren't filtered.public DependencyGraphTransformer getDependencyGraphTransformer()
RepositorySystemSessiongetDependencyGraphTransformer in interface RepositorySystemSessionnull if none.public SessionData getData()
RepositorySystemSessiongetData in interface RepositorySystemSessionnull.public RepositoryCache getCache()
RepositorySystemSessiongetCache in interface RepositorySystemSessionnull if none.Copyright © 2010-2015 The Eclipse Foundation. All Rights Reserved.