protected HttpClient initHttpConnection() { return RestUtils.initHttpConnection( this, this.jets3tProperties, this.invokingApplicationDescription, this.credentialsProvider); }
protected HttpClient initHttpConnection() { return RestUtils.initHttpConnection( this, this.jets3tProperties, this.invokingApplicationDescription, this.credentialsProvider); }
/** * Create utility class for a given OAuth implementation that will use the given * client ID and Secret. Values in the given {@link Jets3tProperties} object are * used to configure HTTP/S connections that may be performed by this class. * * @param implementation OAuth implementation version * @param clientId Client ID for installed application * @param clientSecret Client secret for installed applications * @param jets3tProperties Properties to configure HTTP/S connections */ public OAuthUtils(OAuthImplementation implementation, String clientId, String clientSecret, Jets3tProperties jets3tProperties) { this(RestUtils.initHttpConnection( null, // requestAuthorizer jets3tProperties, HTTP_USER_AGENT, null), implementation, clientId, clientSecret); }
/** * Create utility class for a given OAuth implementation that will use the given * client ID and Secret. Values in the given {@link Jets3tProperties} object are * used to configure HTTP/S connections that may be performed by this class. * * @param implementation OAuth implementation version * @param clientId Client ID for installed application * @param clientSecret Client secret for installed applications * @param jets3tProperties Properties to configure HTTP/S connections */ public OAuthUtils(OAuthImplementation implementation, String clientId, String clientSecret, Jets3tProperties jets3tProperties) { this(RestUtils.initHttpConnection( null, // requestAuthorizer jets3tProperties, HTTP_USER_AGENT, null), implementation, clientId, clientSecret); }
/** * 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()); }