@Test public void testDefaultProxySelectorUsesExistingProxy() { DefaultRepositorySystemSession session = new DefaultRepositorySystemSession(); RemoteRepository repo = new RemoteRepository.Builder( "id", "default", "void" ).build(); assertSame( null, session.getProxySelector().getProxy( repo ) ); Proxy proxy = new Proxy( "http", "localhost", 8080, null ); repo = new RemoteRepository.Builder( repo ).setProxy( proxy ).build(); assertSame( proxy, session.getProxySelector().getProxy( repo ) ); }
public ProxySelector getProxySelector() { return proxySelector; }
DefaultRepositorySystemSession implements RepositorySystemSession { public ProxySelector getProxySelector() { return proxySelector; } }
DefaultRepositorySystemSession implements RepositorySystemSession { public ProxySelector getProxySelector() { return proxySelector; } DefaultRepositorySystemSession();  DefaultRepositorySystemSession( RepositorySystemSession session ); }
DefaultRepositorySystemSession implements RepositorySystemSession { public ProxySelector getProxySelector() { return proxySelector; } DefaultRepositorySystemSession();  DefaultRepositorySystemSession( RepositorySystemSession session ); boolean isOffline(); DefaultRepositorySystemSession setOffline( boolean offline ); boolean isIgnoreArtifactDescriptorRepositories(); DefaultRepositorySystemSession setIgnoreArtifactDescriptorRepositories( boolean ignoreArtifactDescriptorRepositories ); ResolutionErrorPolicy getResolutionErrorPolicy(); DefaultRepositorySystemSession setResolutionErrorPolicy( ResolutionErrorPolicy resolutionErrorPolicy ); ArtifactDescriptorPolicy getArtifactDescriptorPolicy(); DefaultRepositorySystemSession setArtifactDescriptorPolicy( ArtifactDescriptorPolicy artifactDescriptorPolicy ); String getChecksumPolicy(); DefaultRepositorySystemSession setChecksumPolicy( String checksumPolicy ); String getUpdatePolicy(); DefaultRepositorySystemSession setUpdatePolicy( String updatePolicy ); LocalRepository getLocalRepository(); LocalRepositoryManager getLocalRepositoryManager(); DefaultRepositorySystemSession setLocalRepositoryManager( LocalRepositoryManager localRepositoryManager ); WorkspaceReader getWorkspaceReader(); DefaultRepositorySystemSession setWorkspaceReader( WorkspaceReader workspaceReader ); RepositoryListener getRepositoryListener(); DefaultRepositorySystemSession setRepositoryListener( RepositoryListener repositoryListener ); TransferListener getTransferListener(); DefaultRepositorySystemSession setTransferListener( TransferListener transferListener ); Map<String, String> getSystemProperties(); DefaultRepositorySystemSession setSystemProperties( Map<?, ?> systemProperties ); DefaultRepositorySystemSession setSystemProperty( String key, String value ); Map<String, String> getUserProperties(); DefaultRepositorySystemSession setUserProperties( Map<?, ?> userProperties ); DefaultRepositorySystemSession setUserProperty( String key, String value ); Map<String, Object> getConfigProperties(); DefaultRepositorySystemSession setConfigProperties( Map<?, ?> configProperties ); DefaultRepositorySystemSession setConfigProperty( String key, Object value ); MirrorSelector getMirrorSelector(); DefaultRepositorySystemSession setMirrorSelector( MirrorSelector mirrorSelector ); ProxySelector getProxySelector(); DefaultRepositorySystemSession setProxySelector( ProxySelector proxySelector ); AuthenticationSelector getAuthenticationSelector(); DefaultRepositorySystemSession setAuthenticationSelector( AuthenticationSelector authenticationSelector ); ArtifactTypeRegistry getArtifactTypeRegistry(); DefaultRepositorySystemSession setArtifactTypeRegistry( ArtifactTypeRegistry artifactTypeRegistry ); DependencyTraverser getDependencyTraverser(); DefaultRepositorySystemSession setDependencyTraverser( DependencyTraverser dependencyTraverser ); DependencyManager getDependencyManager(); DefaultRepositorySystemSession setDependencyManager( DependencyManager dependencyManager ); DependencySelector getDependencySelector(); DefaultRepositorySystemSession setDependencySelector( DependencySelector dependencySelector ); VersionFilter getVersionFilter(); DefaultRepositorySystemSession setVersionFilter( VersionFilter versionFilter ); DependencyGraphTransformer getDependencyGraphTransformer(); DefaultRepositorySystemSession setDependencyGraphTransformer( DependencyGraphTransformer dependencyGraphTransformer ); SessionData getData(); DefaultRepositorySystemSession setData( SessionData data ); RepositoryCache getCache(); DefaultRepositorySystemSession setCache( RepositoryCache cache ); void setReadOnly(); }
DefaultRepositorySystemSession implements RepositorySystemSession { public ProxySelector getProxySelector() { return proxySelector; } DefaultRepositorySystemSession();  DefaultRepositorySystemSession( RepositorySystemSession session ); boolean isOffline(); DefaultRepositorySystemSession setOffline( boolean offline ); boolean isIgnoreArtifactDescriptorRepositories(); DefaultRepositorySystemSession setIgnoreArtifactDescriptorRepositories( boolean ignoreArtifactDescriptorRepositories ); ResolutionErrorPolicy getResolutionErrorPolicy(); DefaultRepositorySystemSession setResolutionErrorPolicy( ResolutionErrorPolicy resolutionErrorPolicy ); ArtifactDescriptorPolicy getArtifactDescriptorPolicy(); DefaultRepositorySystemSession setArtifactDescriptorPolicy( ArtifactDescriptorPolicy artifactDescriptorPolicy ); String getChecksumPolicy(); DefaultRepositorySystemSession setChecksumPolicy( String checksumPolicy ); String getUpdatePolicy(); DefaultRepositorySystemSession setUpdatePolicy( String updatePolicy ); LocalRepository getLocalRepository(); LocalRepositoryManager getLocalRepositoryManager(); DefaultRepositorySystemSession setLocalRepositoryManager( LocalRepositoryManager localRepositoryManager ); WorkspaceReader getWorkspaceReader(); DefaultRepositorySystemSession setWorkspaceReader( WorkspaceReader workspaceReader ); RepositoryListener getRepositoryListener(); DefaultRepositorySystemSession setRepositoryListener( RepositoryListener repositoryListener ); TransferListener getTransferListener(); DefaultRepositorySystemSession setTransferListener( TransferListener transferListener ); Map<String, String> getSystemProperties(); DefaultRepositorySystemSession setSystemProperties( Map<?, ?> systemProperties ); DefaultRepositorySystemSession setSystemProperty( String key, String value ); Map<String, String> getUserProperties(); DefaultRepositorySystemSession setUserProperties( Map<?, ?> userProperties ); DefaultRepositorySystemSession setUserProperty( String key, String value ); Map<String, Object> getConfigProperties(); DefaultRepositorySystemSession setConfigProperties( Map<?, ?> configProperties ); DefaultRepositorySystemSession setConfigProperty( String key, Object value ); MirrorSelector getMirrorSelector(); DefaultRepositorySystemSession setMirrorSelector( MirrorSelector mirrorSelector ); ProxySelector getProxySelector(); DefaultRepositorySystemSession setProxySelector( ProxySelector proxySelector ); AuthenticationSelector getAuthenticationSelector(); DefaultRepositorySystemSession setAuthenticationSelector( AuthenticationSelector authenticationSelector ); ArtifactTypeRegistry getArtifactTypeRegistry(); DefaultRepositorySystemSession setArtifactTypeRegistry( ArtifactTypeRegistry artifactTypeRegistry ); DependencyTraverser getDependencyTraverser(); DefaultRepositorySystemSession setDependencyTraverser( DependencyTraverser dependencyTraverser ); DependencyManager getDependencyManager(); DefaultRepositorySystemSession setDependencyManager( DependencyManager dependencyManager ); DependencySelector getDependencySelector(); DefaultRepositorySystemSession setDependencySelector( DependencySelector dependencySelector ); VersionFilter getVersionFilter(); DefaultRepositorySystemSession setVersionFilter( VersionFilter versionFilter ); DependencyGraphTransformer getDependencyGraphTransformer(); DefaultRepositorySystemSession setDependencyGraphTransformer( DependencyGraphTransformer dependencyGraphTransformer ); SessionData getData(); DefaultRepositorySystemSession setData( SessionData data ); RepositoryCache getCache(); DefaultRepositorySystemSession setCache( RepositoryCache cache ); void setReadOnly();  }