Tabnine Logo
RepositorySystemSession.isOffline
Code IndexAdd Tabnine to your IDE (free)

How to use
isOffline
method
in
org.sonatype.aether.RepositorySystemSession

Best Java code snippets using org.sonatype.aether.RepositorySystemSession.isOffline (Showing top 8 results out of 315)

origin: sonatype/sonatype-aether

public boolean isOffline()
{
  return session.isOffline();
}
origin: org.sonatype.aether/aether-impl

public DeployResult deploy( RepositorySystemSession session, DeployRequest request )
  throws DeploymentException
{
  if ( session.isOffline() )
  {
    throw new DeploymentException( "The repository system is in offline mode, deployment impossible" );
  }
  SyncContext syncContext = syncContextFactory.newInstance( session, false );
  try
  {
    return deploy( syncContext, session, request );
  }
  finally
  {
    syncContext.release();
  }
}
origin: sonatype/sonatype-aether

public DeployResult deploy( RepositorySystemSession session, DeployRequest request )
  throws DeploymentException
{
  if ( session.isOffline() )
  {
    throw new DeploymentException( "The repository system is in offline mode, deployment impossible" );
  }
  SyncContext syncContext = syncContextFactory.newInstance( session, false );
  try
  {
    return deploy( syncContext, session, request );
  }
  finally
  {
    syncContext.release();
  }
}
origin: org.sonatype.aether/aether-impl

if ( session.isOffline() )
origin: sonatype/sonatype-aether

if ( session.isOffline() )
origin: sonatype/sonatype-aether

if ( session.isOffline() )
origin: org.sonatype.aether/aether-impl

if ( session.isOffline() )
origin: sonatype/sonatype-aether

setOffline( session.isOffline() );
setTransferErrorCachingEnabled( session.isTransferErrorCachingEnabled() );
setNotFoundCachingEnabled( session.isNotFoundCachingEnabled() );
org.sonatype.aetherRepositorySystemSessionisOffline

Javadoc

Indicates whether the repository system operates in offline mode and avoids/refuses any access to remote repositories.

Popular methods of RepositorySystemSession

  • getConfigProperties
    Gets the configuration properties used to tweak internal aspects of the repository system (e.g. thre
  • getLocalRepository
    Gets the local repository used during this session. This is a convenience method for LocalRepository
  • getTransferListener
    Gets the listener being notified of uploads/downloads by the repository system.
  • getAuthenticationSelector
    Gets the authentication selector to use for repositories discovered in artifact descriptors. Note th
  • getLocalRepositoryManager
    Gets the local repository manager used during this session.
  • getProxySelector
    Gets the proxy selector to use for repositories discovered in artifact descriptors. Note that this s
  • getRepositoryListener
    Gets the listener being notified of actions in the repository system.
  • getArtifactTypeRegistry
    Gets the registry of artifact types recognized by this session.
  • getCache
    Gets the cache the repository system may use to save data for future reuse during the session.
  • getData
    Gets the custom data associated with this session.
  • getDependencyGraphTransformer
    Gets the dependency graph transformer to use for building dependency graphs.
  • getSystemProperties
    Gets the system properties to use, e.g. for processing of artifact descriptors. System properties ar
  • getDependencyGraphTransformer,
  • getSystemProperties,
  • getUserProperties,
  • getWorkspaceReader,
  • getChecksumPolicy,
  • getDependencyManager,
  • getDependencySelector,
  • getDependencyTraverser,
  • getMirrorSelector,
  • getUpdatePolicy

Popular in Java

  • Making http post requests using okhttp
  • runOnUiThread (Activity)
  • putExtra (Intent)
  • getExternalFilesDir (Context)
  • Table (com.google.common.collect)
    A collection that associates an ordered pair of keys, called a row key and a column key, with a sing
  • GridBagLayout (java.awt)
    The GridBagLayout class is a flexible layout manager that aligns components vertically and horizonta
  • FileNotFoundException (java.io)
    Thrown when a file specified by a program cannot be found.
  • SortedSet (java.util)
    SortedSet is a Set which iterates over its elements in a sorted order. The order is determined eithe
  • ZipFile (java.util.zip)
    This class provides random read access to a zip file. You pay more to read the zip file's central di
  • JFrame (javax.swing)
  • Top Vim plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now