List of usage examples for com.amazonaws.http ExecutionContext ExecutionContext
@Deprecated public ExecutionContext(List<RequestHandler2> requestHandler2s, boolean isMetricEnabled, AmazonWebServiceClient awsClient)
From source file:com.github.sjones4.youcan.youtoken.YouTokenClient.java
License:Open Source License
protected ExecutionContext createExecutionContext(final AmazonWebServiceRequest req) { boolean isMetricsEnabled = isRequestMetricsEnabled(req) || isProfilingEnabled(); return new ExecutionContext(requestHandler2s, isMetricsEnabled, this) { @Override//from ww w . j a va 2s . c o m public Signer getSignerByURI(final URI uri) { if (getCredentialsProvider().getCredentials() instanceof PasswordCredentials) { return new PasswordSigner(); } return super.getSignerByURI(uri); } }; }