public interface ClientInterface extends Closeable
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_BEAN_NAME |
Modifier and Type | Method and Description |
---|---|
boolean |
allowMultiton()
允许多例共享通讯资源
|
Response |
execute(Request request)
执行请求,得到响应
|
HttpTemplateManager |
getHttpTemplateManager()
获得HTTP通讯配置模板管理器
|
List<RequestInterceptor> |
getInterceptorList()
获取客户端配置的请求拦截器
|
void |
init(Context context)
初始化客户端
|
static final String DEFAULT_BEAN_NAME
void init(Context context)
context
- HttpTemplateManager getHttpTemplateManager()
boolean allowMultiton()
List<RequestInterceptor> getInterceptorList()
Copyright © 2006–2018 TinyGroup. All rights reserved.