com.netease.cloud.http
public class ExecutionContext extends Object
Constructor and Description |
---|
ExecutionContext() |
ExecutionContext(List<RequestHandler> requestHandlers) |
Modifier and Type | Method and Description |
---|---|
String |
getContextUserAgent() |
Credentials |
getCredentials()
Returns the optional credentials used to sign the associated request.
|
CustomBackoffStrategy |
getCustomBackoffStrategy()
Returns the optional custom backoff strategy for controlling how long
between retries on error responses.
|
List<RequestHandler> |
getRequestHandlers()
Returns a list of request handlers that should be run for a given
request's execution.
|
Signer |
getSigner()
Returns the optional signer used to sign the associated request.
|
TimingInfo |
getTimingInfo() |
String |
getToken() |
void |
setContextUserAgent(String contextUserAgent) |
void |
setCredentials(Credentials credentials)
Sets the optional credentials used to sign the associated request.
|
void |
setCustomBackoffStrategy(CustomBackoffStrategy backoffStrategy)
Sets the optional custom backoff strategy for controlling how long
between retries on error responses.
|
void |
setSigner(Signer signer)
Sets the optional signer used to sign the associated request.
|
void |
setTimingInfo(TimingInfo timingInfo) |
void |
setToken(String token) |
public ExecutionContext()
public ExecutionContext(List<RequestHandler> requestHandlers)
public String getContextUserAgent()
public void setContextUserAgent(String contextUserAgent)
public List<RequestHandler> getRequestHandlers()
public TimingInfo getTimingInfo()
public void setTimingInfo(TimingInfo timingInfo)
public Signer getSigner()
public void setSigner(Signer signer)
signer
- The optional signer used to sign the associated request.public Credentials getCredentials()
public void setCredentials(Credentials credentials)
credentials
- The optional credentials used to sign the associated request.public CustomBackoffStrategy getCustomBackoffStrategy()
public void setCustomBackoffStrategy(CustomBackoffStrategy backoffStrategy)
backoffStrategy
- The optional custom backoff strategy for the associated
request.public String getToken()
public void setToken(String token)
Copyright © 2017. All Rights Reserved.