public interface APIRequest<T extends APIResponse>
| 限定符和类型 | 字段和说明 |
|---|---|
static String[] |
COMMON_HEADER_PARAM_NAMES
公共的 header 参数 name
|
| 限定符和类型 | 方法和说明 |
|---|---|
void |
check()
验证请求
|
String |
getApiMethodName()
api 方法名称
|
String |
getAuthToken()
已过时。
已去除token
|
org.yelong.http.request.HttpRequest |
getHttpRequest()
获取 http 请求
|
Class<T> |
getResponseClass()
获取响应的类型
|
String |
getSchemaTag()
获取 scheam
|
String |
getServerUrl()
获取服务的根url
|
Long |
getTimestamp()
获取时间戳
|
void |
setAuthToken(String authToken)
已过时。
已去除token
|
void |
setSchemaTag(String schemaKey)
设置 schema
|
void |
setServerUrl(String serverUrl)
设置服务的根url
|
void |
setTimestamp(long timestamp)
设置时间戳
|
static final String[] COMMON_HEADER_PARAM_NAMES
String getApiMethodName()
void setServerUrl(String serverUrl)
serverUrl - String getServerUrl()
void check()
throws APIRuleException
APIRuleException@Deprecated void setAuthToken(String authToken)
authToken - @Deprecated String getAuthToken()
void setSchemaTag(String schemaKey)
schemaKey - String getSchemaTag()
Long getTimestamp()
void setTimestamp(long timestamp)
timestamp - org.yelong.http.request.HttpRequest getHttpRequest()
throws org.yelong.http.exception.HttpException,
APIException,
IOException
org.yelong.http.exception.HttpExceptionAPIExceptionIOExceptionCopyright © 2020. All rights reserved.