Package org.sonatype.nexus.proxy.repository

Examples of org.sonatype.nexus.proxy.repository.RemoteProxySettings


    // change the global proxy
    final DefaultRemoteHttpProxySettings httpProxySettings = new DefaultRemoteHttpProxySettings();
    httpProxySettings.setHostname("192.168.1.1");
    httpProxySettings.setPort(1234);

    RemoteProxySettings proxy = applicationConfiguration.getGlobalRemoteStorageContext().getRemoteProxySettings();
    proxy.setHttpProxySettings(httpProxySettings);

    // TODO: this is the spurious part!!! Make it not needed! Config framework DOES know it changed!
    // If you remove this, test will fail
    applicationConfiguration.getGlobalRemoteStorageContext().setRemoteProxySettings(proxy);
    applicationConfiguration.saveConfiguration();
View Full Code Here

TOP

Related Classes of org.sonatype.nexus.proxy.repository.RemoteProxySettings

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.