public class OkHttpClientInterceptor extends Object implements okhttp3.Interceptor, HttpClientInterceptor
| Constructor and Description |
|---|
OkHttpClientInterceptor() |
OkHttpClientInterceptor(okhttp3.OkHttpClient httpClient) |
| Modifier and Type | Method and Description |
|---|---|
void |
init(Function<RecordoRequest,Optional<RecordoResponse>> onBeforeRequest,
BiFunction<RecordoRequest,RecordoResponse,RecordoResponse> onAfterRequest) |
okhttp3.Response |
intercept(okhttp3.Interceptor.Chain chain) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitapacheHttpClientInterceptor, of, okHttpClient, okHttpClientInterceptorpublic OkHttpClientInterceptor()
public OkHttpClientInterceptor(okhttp3.OkHttpClient httpClient)
public void init(Function<RecordoRequest,Optional<RecordoResponse>> onBeforeRequest, BiFunction<RecordoRequest,RecordoResponse,RecordoResponse> onAfterRequest)
init in interface HttpClientInterceptorpublic okhttp3.Response intercept(okhttp3.Interceptor.Chain chain)
throws IOException
intercept in interface okhttp3.InterceptorIOExceptionCopyright © 2020. All rights reserved.