Package org.onyx.http
Class LoggingInterceptor
java.lang.Object
org.onyx.http.LoggingInterceptor
- All Implemented Interfaces:
okhttp3.Interceptor
The LoggingInterceptor object logs http requests given
an output stream.
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface okhttp3.Interceptor
okhttp3.Interceptor.Chain -
Constructor Summary
ConstructorsConstructorDescriptionLoggingInterceptor(OutputStream logger, LoggingInterceptor.Level logAllRequests) -
Method Summary
Modifier and TypeMethodDescriptionokhttp3.Responseintercept(okhttp3.Interceptor.Chain chain) voidlogRequestData(okhttp3.Request request, okhttp3.Response response)
-
Constructor Details
-
LoggingInterceptor
-
-
Method Details
-
intercept
- Specified by:
interceptin interfaceokhttp3.Interceptor- Throws:
IOException
-
logRequestData
- Throws:
IOException
-