/** * Initialises this service's HTTP proxy by auto-detecting the proxy settings. */ public static void initHttpProxy(HttpClient httpClient, Jets3tProperties jets3tProperties) { initHttpProxy(httpClient, jets3tProperties, true, null, -1, null, null, null); }
/** * Initialises this service's HTTP proxy with the given proxy settings. * * @param proxyHostAddress * @param proxyPort */ public static void initHttpProxy(HttpClient httpClient, String proxyHostAddress, int proxyPort, Jets3tProperties jets3tProperties) { initHttpProxy(httpClient, jets3tProperties, false, proxyHostAddress, proxyPort, null, null, null); }
/** * Initialises this service's HTTP proxy with the given proxy settings. * * @param proxyHostAddress * @param proxyPort */ public static void initHttpProxy(HttpClient httpClient, String proxyHostAddress, int proxyPort, Jets3tProperties jets3tProperties) { initHttpProxy(httpClient, jets3tProperties, false, proxyHostAddress, proxyPort, null, null, null); }
/** * Initialises this service's HTTP proxy by auto-detecting the proxy settings using the given endpoint. */ public static void initHttpProxy(HttpClient httpClient, Jets3tProperties jets3tProperties, String endpoint) { initHttpProxy(httpClient, jets3tProperties, true, null, -1, null, null, null, endpoint); }
/** * Initialises this service's HTTP proxy by auto-detecting the proxy settings. */ public static void initHttpProxy(HttpClient httpClient, Jets3tProperties jets3tProperties) { initHttpProxy(httpClient, jets3tProperties, true, null, -1, null, null, null); }
/** * Initialises this service's HTTP proxy by auto-detecting the proxy settings using the given endpoint. */ public static void initHttpProxy(HttpClient httpClient, Jets3tProperties jets3tProperties, String endpoint) { initHttpProxy(httpClient, jets3tProperties, true, null, -1, null, null, null, endpoint); }
/** * Initialises this service's HTTP proxy for authentication using the given * proxy settings. * * @param proxyHostAddress * @param proxyPort * @param proxyUser * @param proxyPassword * @param proxyDomain * if a proxy domain is provided, an {@link NTCredentials} credential provider * will be used. If the proxy domain is null, a * {@link UsernamePasswordCredentials} credentials provider will be used. */ public static void initHttpProxy(HttpClient httpClient, Jets3tProperties jets3tProperties, String proxyHostAddress, int proxyPort, String proxyUser, String proxyPassword, String proxyDomain) { initHttpProxy(httpClient, jets3tProperties, false, proxyHostAddress, proxyPort, proxyUser, proxyPassword, proxyDomain); }
/** * Initialises this service's HTTP proxy for authentication using the given * proxy settings. * * @param proxyHostAddress * @param proxyPort * @param proxyUser * @param proxyPassword * @param proxyDomain * if a proxy domain is provided, an {@link NTCredentials} credential provider * will be used. If the proxy domain is null, a * {@link UsernamePasswordCredentials} credentials provider will be used. */ public static void initHttpProxy(HttpClient httpClient, Jets3tProperties jets3tProperties, String proxyHostAddress, int proxyPort, String proxyUser, String proxyPassword, String proxyDomain) { initHttpProxy(httpClient, jets3tProperties, false, proxyHostAddress, proxyPort, proxyUser, proxyPassword, proxyDomain); }
/** * @param httpClient * @param proxyAutodetect * @param proxyHostAddress * @param proxyPort * @param proxyUser * @param proxyPassword * @param proxyDomain */ public static void initHttpProxy(HttpClient httpClient, Jets3tProperties jets3tProperties, boolean proxyAutodetect, String proxyHostAddress, int proxyPort, String proxyUser, String proxyPassword, String proxyDomain) { String s3Endpoint = jets3tProperties.getStringProperty( "s3service.s3-endpoint", Constants.S3_DEFAULT_HOSTNAME); initHttpProxy(httpClient, jets3tProperties, proxyAutodetect, proxyHostAddress, proxyPort, proxyUser, proxyPassword, proxyDomain, s3Endpoint); }
/** * @param httpClient * @param proxyAutodetect * @param proxyHostAddress * @param proxyPort * @param proxyUser * @param proxyPassword * @param proxyDomain */ public static void initHttpProxy(HttpClient httpClient, Jets3tProperties jets3tProperties, boolean proxyAutodetect, String proxyHostAddress, int proxyPort, String proxyUser, String proxyPassword, String proxyDomain) { String s3Endpoint = jets3tProperties.getStringProperty( "s3service.s3-endpoint", Constants.S3_DEFAULT_HOSTNAME); initHttpProxy(httpClient, jets3tProperties, proxyAutodetect, proxyHostAddress, proxyPort, proxyUser, proxyPassword, proxyDomain, s3Endpoint); }
protected void initializeProxy() { // Retrieve Proxy settings. if(this.jets3tProperties.getBoolProperty("httpclient.proxy-autodetect", true)) { RestUtils.initHttpProxy(this.httpClient, this.jets3tProperties); } else { String proxyHostAddress = this.jets3tProperties.getStringProperty("httpclient.proxy-host", null); int proxyPort = this.jets3tProperties.getIntProperty("httpclient.proxy-port", -1); String proxyUser = this.jets3tProperties.getStringProperty("httpclient.proxy-user", null); String proxyPassword = this.jets3tProperties.getStringProperty("httpclient.proxy-password", null); String proxyDomain = this.jets3tProperties.getStringProperty("httpclient.proxy-domain", null); RestUtils.initHttpProxy(this.httpClient, this.jets3tProperties, proxyHostAddress, proxyPort, proxyUser, proxyPassword, proxyDomain); } }
protected void initializeProxy() { // Retrieve Proxy settings. if(this.jets3tProperties.getBoolProperty("httpclient.proxy-autodetect", true)) { RestUtils.initHttpProxy(this.httpClient, this.jets3tProperties); } else { String proxyHostAddress = this.jets3tProperties.getStringProperty("httpclient.proxy-host", null); int proxyPort = this.jets3tProperties.getIntProperty("httpclient.proxy-port", -1); String proxyUser = this.jets3tProperties.getStringProperty("httpclient.proxy-user", null); String proxyPassword = this.jets3tProperties.getStringProperty("httpclient.proxy-password", null); String proxyDomain = this.jets3tProperties.getStringProperty("httpclient.proxy-domain", null); RestUtils.initHttpProxy(this.httpClient, this.jets3tProperties, proxyHostAddress, proxyPort, proxyUser, proxyPassword, proxyDomain); } }
protected void initializeProxy() { // Retrieve Proxy settings. if(getJetS3tProperties().getBoolProperty("httpclient.proxy-autodetect", true)) { RestUtils.initHttpProxy(httpClient, getJetS3tProperties(), this.getEndpoint()); } else { String proxyHostAddress = getJetS3tProperties().getStringProperty("httpclient.proxy-host", null); int proxyPort = getJetS3tProperties().getIntProperty("httpclient.proxy-port", -1); String proxyUser = getJetS3tProperties().getStringProperty("httpclient.proxy-user", null); String proxyPassword = getJetS3tProperties().getStringProperty("httpclient.proxy-password", null); String proxyDomain = getJetS3tProperties().getStringProperty("httpclient.proxy-domain", null); RestUtils.initHttpProxy(httpClient, getJetS3tProperties(), false, proxyHostAddress, proxyPort, proxyUser, proxyPassword, proxyDomain, this.getEndpoint()); } }
protected void initializeProxy() { // Retrieve Proxy settings. if(getJetS3tProperties().getBoolProperty("httpclient.proxy-autodetect", true)) { RestUtils.initHttpProxy(httpClient, getJetS3tProperties(), this.getEndpoint()); } else { String proxyHostAddress = getJetS3tProperties().getStringProperty("httpclient.proxy-host", null); int proxyPort = getJetS3tProperties().getIntProperty("httpclient.proxy-port", -1); String proxyUser = getJetS3tProperties().getStringProperty("httpclient.proxy-user", null); String proxyPassword = getJetS3tProperties().getStringProperty("httpclient.proxy-password", null); String proxyDomain = getJetS3tProperties().getStringProperty("httpclient.proxy-domain", null); RestUtils.initHttpProxy(httpClient, getJetS3tProperties(), false, proxyHostAddress, proxyPort, proxyUser, proxyPassword, proxyDomain, this.getEndpoint()); } }