/** * Initialise HttpClient and HttpConnectionManager objects with the configuration settings * appropriate for communicating with S3. By default, this method simply delegates the * configuration task to {@link org.jets3t.service.utils.RestUtils#initHttpConnection(JetS3tRequestAuthorizer, org.jets3t.service.Jets3tProperties, String, org.apache.http.client.CredentialsProvider)}. * <p> * To alter the low-level behaviour of the HttpClient library, override this method in * a subclass and apply your own settings before returning the objects. * * @return configured HttpClient library client and connection manager objects. */ protected HttpClient initHttpConnection() { return RestUtils.initHttpConnection( this, getJetS3tProperties(), getInvokingApplicationDescription(), getCredentialsProvider()); }
/** * Initialise HttpClient and HttpConnectionManager objects with the configuration settings * appropriate for communicating with S3. By default, this method simply delegates the * configuration task to {@link org.jets3t.service.utils.RestUtils#initHttpConnection(JetS3tRequestAuthorizer, org.jets3t.service.Jets3tProperties, String, org.apache.http.client.CredentialsProvider)}. * <p> * To alter the low-level behaviour of the HttpClient library, override this method in * a subclass and apply your own settings before returning the objects. * * @return configured HttpClient library client and connection manager objects. */ protected HttpClient initHttpConnection() { return RestUtils.initHttpConnection( this, getJetS3tProperties(), getInvokingApplicationDescription(), getCredentialsProvider()); }