Class OkHttpTweakLogInterceptor
-
- All Implemented Interfaces:
-
okhttp3.Interceptor,pro.fessional.wings.slardar.httprest.okhttp.OkHttpInterceptor
public class OkHttpTweakLogInterceptor implements OkHttpInterceptor
Default mapping of Log-level and data-level DEBUG- : BODY INFO : BASIC WARN+ : NONE- Since:
2022-11-01
trydofor
-
-
Field Summary
Fields Modifier and Type Field Description public final static HttpLoggingInterceptor.LoggerLoggerTracepublic final static HttpLoggingInterceptor.LoggerLoggerDebugpublic final static HttpLoggingInterceptor.LoggerLoggerInfopublic final static HttpLoggingInterceptor.LoggerLoggerWarnpublic final static Interceptor.CompanionCompanion
-
Constructor Summary
Constructors Constructor Description OkHttpTweakLogInterceptor(Collection<String> nop)
-
Method Summary
Modifier and Type Method Description voidlevelMapping(@NotNull() LogLevel lg, @NotNull() HttpLoggingInterceptor.Level ok)Change the mapping to Log-level and data-level, e.g. voidresetMapping()reset to the default mapping Responseintercept(@NotNull() Interceptor.Chain chain)booleanisNetwork()-
-
Constructor Detail
-
OkHttpTweakLogInterceptor
OkHttpTweakLogInterceptor(Collection<String> nop)
-
-
Method Detail
-
levelMapping
void levelMapping(@NotNull() LogLevel lg, @NotNull() HttpLoggingInterceptor.Level ok)
Change the mapping to Log-level and data-level, e.g. DEBUG - BODY
-
resetMapping
void resetMapping()
reset to the default mapping
-
intercept
@NotNull() Response intercept(@NotNull() Interceptor.Chain chain)
-
isNetwork
boolean isNetwork()
-
-
-
-