ApiClientHandler(String endpoint, String apiName, Signer signer, AWSCredentialsProvider provider, String apiKey, ClientConfiguration clientConfiguration) { this.endpoint = endpoint; this.apiName = apiName; this.signer = signer; this.provider = provider; this.apiKey = apiKey; this.clientConfiguration = clientConfiguration; client = new UrlHttpClient(this.clientConfiguration); requestFactory = new HttpRequestFactory(); }
@Before public void setup() { factory = new HttpRequestFactory(); request = new DefaultRequest<Object>("dummy"); request.setEndpoint(URI.create("https://s3.amazonaws.com")); clientConfiguration = new ClientConfiguration(); context = new ExecutionContext(); }
ApiClientHandler(String endpoint, String apiName, Signer signer, AWSCredentialsProvider provider, String apiKey, ClientConfiguration clientConfiguration) { this.endpoint = endpoint; this.apiName = apiName; this.signer = signer; this.provider = provider; this.apiKey = apiKey; this.clientConfiguration = clientConfiguration; client = new UrlHttpClient(this.clientConfiguration); requestFactory = new HttpRequestFactory(); }