@NotThreadSafe public class ExecutionContext extends Object
Constructor and Description |
---|
ExecutionContext()
For testing purposes.
|
ExecutionContext(boolean isMetricEnabled)
For testing purposes.
|
ExecutionContext(List<RequestHandler2> requestHandler2s,
boolean isMetricEnabled,
AmazonWebServiceClient awsClient) |
Modifier and Type | Method and Description |
---|---|
AWSRequestMetrics |
getAwsRequestMetrics() |
String |
getContextUserAgent() |
AWSCredentials |
getCredentials()
Returns the optional credentials used to sign the associated request.
|
List<RequestHandler2> |
getRequestHandler2s() |
Signer |
getSignerByURI(URI uri)
Returns the signer for the given uri.
|
void |
setContextUserAgent(String contextUserAgent) |
void |
setCredentials(AWSCredentials credentials)
Sets the optional credentials used to sign the associated request.
|
void |
setSigner(Signer signer)
There is in general no need to set the signer in the execution context,
since the signer for each request may differ depending on the URI of
the request.
|
public ExecutionContext(boolean isMetricEnabled)
public ExecutionContext()
public ExecutionContext(List<RequestHandler2> requestHandler2s, boolean isMetricEnabled, AmazonWebServiceClient awsClient)
public String getContextUserAgent()
public void setContextUserAgent(String contextUserAgent)
public List<RequestHandler2> getRequestHandler2s()
public AWSRequestMetrics getAwsRequestMetrics()
public void setSigner(Signer signer)
public Signer getSignerByURI(URI uri)
public AWSCredentials getCredentials()
public void setCredentials(AWSCredentials credentials)
credentials
- The optional credentials used to sign the associated request.Copyright © 2015. All rights reserved.