| 构造器和说明 |
|---|
BaseRequest(String httpPath,
String httpMethod,
AccessTokenType[] accessTokenTypes,
I input,
O output,
RequestOptFn... requestOptFns) |
BaseRequest(String httpPath,
String httpMethod,
AccessTokenType accessTokenType,
I input,
O output,
RequestOptFn... requestOptFns) |
| 限定符和类型 | 方法和说明 |
|---|---|
String |
buildQuery(Map<String,Object> params) |
static BaseRequest |
byContext(Context context) |
String |
fullUrl(String domain) |
AccessTokenType |
getAccessTokenType() |
Set<AccessTokenType> |
getAccessTokenTypeSet() |
String |
getHttpMethod() |
String |
getHttpPath() |
I |
getInput() |
O |
getOutput() |
String |
getQueryParams() |
List<RequestOptFn> |
getRequestOptFns() |
String |
getTenantKey() |
long |
getTimeoutOfMs() |
String |
getUserAccessToken() |
void |
init() |
boolean |
isNotDataField() |
boolean |
isResponseStream() |
boolean |
isResponseStreamReal() |
boolean |
isRetry() |
String |
resolvePath(String path,
Map<String,Object> pathVar) |
void |
setResponseStream(boolean responseStream) |
void |
setResponseStreamReal(boolean responseStreamReal) |
void |
setRetry(boolean retry) |
String |
url() |
void |
withContext(Context context) |
public BaseRequest(String httpPath, String httpMethod, AccessTokenType accessTokenType, I input, O output, RequestOptFn... requestOptFns)
public BaseRequest(String httpPath, String httpMethod, AccessTokenType[] accessTokenTypes, I input, O output, RequestOptFn... requestOptFns)
public static BaseRequest byContext(Context context)
public void init()
public void withContext(Context context)
public long getTimeoutOfMs()
public String getHttpPath()
public String getHttpMethod()
public String getQueryParams()
public I getInput()
public Set<AccessTokenType> getAccessTokenTypeSet()
public AccessTokenType getAccessTokenType()
public String getTenantKey()
public String getUserAccessToken()
public boolean isNotDataField()
public O getOutput()
public boolean isRetry()
public void setRetry(boolean retry)
public boolean isResponseStream()
public void setResponseStream(boolean responseStream)
public List<RequestOptFn> getRequestOptFns()
public boolean isResponseStreamReal()
public void setResponseStreamReal(boolean responseStreamReal)
public String url()
Copyright © 2021. All rights reserved.