Package io.github.taha_cmd.api.http
Class HttpClientRetryInterceptor
java.lang.Object
io.github.taha_cmd.api.http.HttpClientRetryInterceptor
- All Implemented Interfaces:
okhttp3.Interceptor
-
Nested Class Summary
Nested classes/interfaces inherited from interface okhttp3.Interceptor
okhttp3.Interceptor.Chain, okhttp3.Interceptor.Companion
-
Field Summary
Fields inherited from interface okhttp3.Interceptor
Companion
-
Constructor Summary
ConstructorsConstructorDescriptionHttpClientRetryInterceptor
(int numberOfRetries, SignPathClientSimpleLogger logger, Function<okhttp3.Response, String> errorMessageFormatter) -
Method Summary
-
Constructor Details
-
HttpClientRetryInterceptor
public HttpClientRetryInterceptor(int numberOfRetries, SignPathClientSimpleLogger logger, Function<okhttp3.Response, String> errorMessageFormatter)
-
-
Method Details
-
intercept
@NotNull public okhttp3.Response intercept(@NotNull okhttp3.Interceptor.Chain chain) throws IOException - Specified by:
intercept
in interfaceokhttp3.Interceptor
- Throws:
IOException
-