public abstract class BaseGlobalInterceptor extends Object implements PrototypeInterceptor
| 构造器和说明 |
|---|
BaseGlobalInterceptor() |
| 限定符和类型 | 方法和说明 |
|---|---|
protected abstract okhttp3.Response |
doIntercept(okhttp3.Interceptor.Chain chain)
执行拦截
|
okhttp3.Response |
intercept(okhttp3.Interceptor.Chain chain) |
public final okhttp3.Response intercept(okhttp3.Interceptor.Chain chain)
throws IOException
intercept 在接口中 okhttp3.InterceptorIOExceptionprotected abstract okhttp3.Response doIntercept(okhttp3.Interceptor.Chain chain)
throws IOException
chain - 拦截器链IOException - 可能因为网络IO问题,抛出IOExceptionCopyright © 2020. All rights reserved.