Example usage for com.amazonaws.http ExecutionContext ExecutionContext

List of usage examples for com.amazonaws.http ExecutionContext ExecutionContext

Introduction

In this page you can find the example usage for com.amazonaws.http ExecutionContext ExecutionContext.

Prototype

@Deprecated
    public ExecutionContext(List<RequestHandler2> requestHandler2s, boolean isMetricEnabled,
            AmazonWebServiceClient awsClient) 

Source Link

Usage

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);
        }
    };
}