@Test public void testCheckOffline_Offline_OfflineHost() throws Exception { controller.checkOffline( newSession( true, null, "localhost" ), newRepo( "http: controller.checkOffline( newSession( true, null, "localhost" ), newRepo( "http: controller.checkOffline( newSession( true, null, " localhost , 127.0.0.1 " ), newRepo( "http: controller.checkOffline( newSession( true, null, " localhost , 127.0.0.1 " ), newRepo( "http: }
public void checkOffline( RepositorySystemSession session, RemoteRepository repository ) throws RepositoryOfflineException { if ( isOfflineProtocol( session, repository ) || isOfflineHost( session, repository ) ) { return; } throw new RepositoryOfflineException( repository ); }
DefaultOfflineController implements OfflineController, Service { public void checkOffline( RepositorySystemSession session, RemoteRepository repository ) throws RepositoryOfflineException { if ( isOfflineProtocol( session, repository ) || isOfflineHost( session, repository ) ) { return; } throw new RepositoryOfflineException( repository ); } }
DefaultOfflineController implements OfflineController, Service { public void checkOffline( RepositorySystemSession session, RemoteRepository repository ) throws RepositoryOfflineException { if ( isOfflineProtocol( session, repository ) || isOfflineHost( session, repository ) ) { return; } throw new RepositoryOfflineException( repository ); } DefaultOfflineController(); @Inject  DefaultOfflineController( LoggerFactory loggerFactory ); }
DefaultOfflineController implements OfflineController, Service { public void checkOffline( RepositorySystemSession session, RemoteRepository repository ) throws RepositoryOfflineException { if ( isOfflineProtocol( session, repository ) || isOfflineHost( session, repository ) ) { return; } throw new RepositoryOfflineException( repository ); } DefaultOfflineController(); @Inject  DefaultOfflineController( LoggerFactory loggerFactory ); void initService( ServiceLocator locator ); DefaultOfflineController setLoggerFactory( LoggerFactory loggerFactory ); void checkOffline( RepositorySystemSession session, RemoteRepository repository ); }
DefaultOfflineController implements OfflineController, Service { public void checkOffline( RepositorySystemSession session, RemoteRepository repository ) throws RepositoryOfflineException { if ( isOfflineProtocol( session, repository ) || isOfflineHost( session, repository ) ) { return; } throw new RepositoryOfflineException( repository ); } DefaultOfflineController(); @Inject  DefaultOfflineController( LoggerFactory loggerFactory ); void initService( ServiceLocator locator ); DefaultOfflineController setLoggerFactory( LoggerFactory loggerFactory ); void checkOffline( RepositorySystemSession session, RemoteRepository repository );  }