Package org.sonatype.nexus.configuration.model

Examples of org.sonatype.nexus.configuration.model.CRemoteHttpProxySettings


    config.getSmtpConfiguration().setPassword(password);

    // global proxy
    config.setRemoteProxySettings(new CRemoteProxySettings());

    final CRemoteHttpProxySettings httpProxySettings = new CRemoteHttpProxySettings();
    httpProxySettings.setProxyHostname("localhost");
    httpProxySettings.setProxyPort(1234);
    httpProxySettings.setAuthentication(new CRemoteAuthentication());
    httpProxySettings.getAuthentication().setPassword(password);

    final CRemoteHttpProxySettings httpsProxySettings = new CRemoteHttpProxySettings();
    httpsProxySettings.setProxyHostname("localhost");
    httpsProxySettings.setProxyPort(1234);
    httpsProxySettings.setAuthentication(new CRemoteAuthentication());
    httpsProxySettings.getAuthentication().setPassword(password);

    config.getRemoteProxySettings().setHttpProxySettings(httpProxySettings);
    config.getRemoteProxySettings().setHttpsProxySettings(httpsProxySettings);

    //        config.getSecurity().setAnonymousPassword( password );
View Full Code Here


  public CRemoteHttpProxySettings convertToModel(RemoteHttpProxySettings settings) {
    if (settings == null) {
      return null;
    }

    final CRemoteHttpProxySettings model = new CRemoteHttpProxySettings();

    model.setProxyHostname(settings.getHostname());
    model.setProxyPort(settings.getPort());
    model.setAuthentication(authenticationInfoConverter.convertToModel(settings.getProxyAuthentication()));

    return model;
  }
View Full Code Here

TOP

Related Classes of org.sonatype.nexus.configuration.model.CRemoteHttpProxySettings

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.