public class ExecutionContext extends Object
Constructor and Description |
---|
ExecutionContext()
For testing purposes.
|
ExecutionContext(boolean isMetricEnabled)
Deprecated.
|
ExecutionContext(List<RequestHandler2> requestHandler2s,
boolean isMetricEnabled,
AmazonWebServiceClient awsClient)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
AWSRequestMetrics |
getAwsRequestMetrics()
Deprecated.
|
String |
getContextUserAgent() |
AWSCredentials |
getCredentials()
Returns the optional credentials used to sign the associated request.
|
List<RequestHandler2> |
getRequestHandler2s() |
Signer |
getSignerByURI(URI 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.
|
@Deprecated public ExecutionContext(boolean isMetricEnabled)
isMetricEnabled
- true if metric is enabled.public ExecutionContext()
public ExecutionContext(List<RequestHandler2> requestHandler2s, boolean isMetricEnabled, AmazonWebServiceClient awsClient)
requestHandler2s
- the list of request handlers.isMetricEnabled
- true if metric is enabled.awsClient
- the AWS client.public String getContextUserAgent()
public void setContextUserAgent(String contextUserAgent)
public List<RequestHandler2> getRequestHandler2s()
@Deprecated public AWSRequestMetrics getAwsRequestMetrics()
public void setSigner(Signer signer)
signer
- the signer.public Signer getSignerByURI(URI uri)
uri
- the URI.public AWSCredentials getCredentials()
public void setCredentials(AWSCredentials credentials)
credentials
- The optional credentials used to sign the associated
request.Copyright © 2018. All rights reserved.