@Test public void customCredentialsProviderSetInBaseRequest_IsSetOnAdapter() { EmptyAmazonWebServiceRequest request = new EmptyAmazonWebServiceRequest(); AWSCredentialsProvider credentialsProvider = mock(AWSCredentialsProvider.class); request.setRequestCredentialsProvider(credentialsProvider); AmazonWebServiceRequestAdapter adapter = new AmazonWebServiceRequestAdapter(request); assertEquals(credentialsProvider, adapter.getCredentialsProvider()); }
@Override public AWSCredentialsProvider getCredentialsProvider() { return request.getRequestCredentialsProvider(); }
AmazonWebServiceRequestAdapter extends RequestConfig { @Override public AWSCredentialsProvider getCredentialsProvider() { return request.getRequestCredentialsProvider(); } }
AmazonWebServiceRequestAdapter extends RequestConfig { @Override public AWSCredentialsProvider getCredentialsProvider() { return request.getRequestCredentialsProvider(); } AmazonWebServiceRequestAdapter(AmazonWebServiceRequest request); }
AmazonWebServiceRequestAdapter extends RequestConfig { @Override public AWSCredentialsProvider getCredentialsProvider() { return request.getRequestCredentialsProvider(); } AmazonWebServiceRequestAdapter(AmazonWebServiceRequest request); @Override ProgressListener getProgressListener(); @Override RequestMetricCollector getRequestMetricsCollector(); @Override AWSCredentialsProvider getCredentialsProvider(); @Override Map<String, String> getCustomRequestHeaders(); @Override Map<String, List<String>> getCustomQueryParameters(); @Override Integer getRequestTimeout(); @Override Integer getClientExecutionTimeout(); @Override RequestClientOptions getRequestClientOptions(); @Override String getRequestType(); @Override Object getOriginalRequest(); }
AmazonWebServiceRequestAdapter extends RequestConfig { @Override public AWSCredentialsProvider getCredentialsProvider() { return request.getRequestCredentialsProvider(); } AmazonWebServiceRequestAdapter(AmazonWebServiceRequest request); @Override ProgressListener getProgressListener(); @Override RequestMetricCollector getRequestMetricsCollector(); @Override AWSCredentialsProvider getCredentialsProvider(); @Override Map<String, String> getCustomRequestHeaders(); @Override Map<String, List<String>> getCustomQueryParameters(); @Override Integer getRequestTimeout(); @Override Integer getClientExecutionTimeout(); @Override RequestClientOptions getRequestClientOptions(); @Override String getRequestType(); @Override Object getOriginalRequest();  }