| 限定符和类型 | 类和说明 |
|---|---|
class |
DefaultContext<T> |
| 限定符和类型 | 方法和说明 |
|---|---|
AttemperContext |
AttemperContext.commonParam(BaseParam baseParam) |
AttemperContext |
AttemperContext.commonResult(BaseResult baseResult) |
AttemperContext |
AttemperContext.headers(List<org.apache.http.Header> headers) |
AttemperContext |
AttemperContext.requestMethod(String requestMethod) |
AttemperContext |
AttemperContext.result(T result) |
AttemperContext |
AttemperContext.url(String url) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
PreHandler.execute(org.apache.http.HttpRequest httpRequest,
AttemperContext context)
在调用接口前执行
|
void |
AfterHandler.executeAlways(AttemperContext context)
不管什么情况下,都会执行到
|
void |
AfterHandler.executeNot200(AttemperContext context)
非200时才执行
|
void |
AfterHandler.executeOf200(AttemperContext context)
code=200才执行
|
| 限定符和类型 | 方法和说明 |
|---|---|
void |
PreHandlerAdapter.execute(org.apache.http.HttpRequest httpRequest,
AttemperContext context) |
void |
AfterHandlerAdapter.executeAlways(AttemperContext context) |
void |
AfterHandlerAdapter.executeNot200(AttemperContext context) |
void |
AfterHandlerAdapter.executeOf200(AttemperContext context) |
| 构造器和说明 |
|---|
RequestInterceptor(List<PreHandler> preHandlers,
AttemperContext context) |
Copyright © 2019 Shanghai Stock Exchange. All rights reserved.