Example usage for com.amazonaws ClientConfiguration setPreemptiveBasicProxyAuth

List of usage examples for com.amazonaws ClientConfiguration setPreemptiveBasicProxyAuth

Introduction

In this page you can find the example usage for com.amazonaws ClientConfiguration setPreemptiveBasicProxyAuth.

Prototype

public void setPreemptiveBasicProxyAuth(Boolean preemptiveBasicProxyAuth) 

Source Link

Document

Sets whether to attempt to authenticate preemptively against proxy servers using basic authentication

Usage

From source file:org.cloudfoundry.community.servicebroker.s3.config.AwsClientConfiguration.java

License:Apache License

public ClientConfiguration toClientConfiguration() {
    ClientConfiguration clientConfiguration = new ClientConfiguration();
    clientConfiguration.setProxyHost(proxyHost);
    if (proxyPort != null) {
        clientConfiguration.setProxyPort(Integer.parseInt(proxyPort));
    }// w w  w .j a va2s  .co  m
    clientConfiguration.setProxyUsername(proxyUsername);
    clientConfiguration.setProxyPassword(proxyPassword);
    if (preemptiveBasicProxyAuth != null) {
        clientConfiguration.setPreemptiveBasicProxyAuth(preemptiveBasicProxyAuth);
    }
    return clientConfiguration;
}